blob: 7ab3242ebee903bd04303d6148fa4c4a0dc01d3a [file] [log] [blame]
Greg Daniel7d918fd2018-06-19 15:22:01 -04001/*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrVkPipelineLayout_DEFINED
9#define GrVkPipelineLayout_DEFINED
10
11#include "GrTypes.h"
12#include "GrVkResource.h"
13#include "vk/GrVkDefines.h"
14
15class GrVkPipelineLayout : public GrVkResource {
16public:
17 GrVkPipelineLayout(VkPipelineLayout layout) : fPipelineLayout(layout) {}
18
19 VkPipelineLayout layout() const { return fPipelineLayout; }
20
21#ifdef SK_TRACE_VK_RESOURCES
22 void dumpInfo() const override {
23 SkDebugf("GrVkPipelineLayout: %d (%d refs)\n", fPipelineLayout, this->getRefCnt());
24 }
25#endif
26
27private:
28 GrVkPipelineLayout(const GrVkPipelineLayout&);
29 GrVkPipelineLayout& operator=(const GrVkPipelineLayout&);
30
31 void freeGPUData(const GrVkGpu* gpu) const override;
32
33 VkPipelineLayout fPipelineLayout;
34
35 typedef GrVkResource INHERITED;
36};
37
38#endif