Greg Daniel | 7d918fd | 2018-06-19 15:22:01 -0400 | [diff] [blame] | 1 | /* |
| 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" |
Greg Daniel | 487132b | 2018-12-20 14:09:36 -0500 | [diff] [blame] | 13 | #include "vk/GrVkTypes.h" |
Greg Daniel | 7d918fd | 2018-06-19 15:22:01 -0400 | [diff] [blame] | 14 | |
| 15 | class GrVkPipelineLayout : public GrVkResource { |
| 16 | public: |
| 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 | |
| 27 | private: |
| 28 | GrVkPipelineLayout(const GrVkPipelineLayout&); |
| 29 | GrVkPipelineLayout& operator=(const GrVkPipelineLayout&); |
| 30 | |
Ethan Nicholas | 8e265a7 | 2018-12-12 16:22:40 -0500 | [diff] [blame] | 31 | void freeGPUData(GrVkGpu* gpu) const override; |
Greg Daniel | 7d918fd | 2018-06-19 15:22:01 -0400 | [diff] [blame] | 32 | |
| 33 | VkPipelineLayout fPipelineLayout; |
| 34 | |
| 35 | typedef GrVkResource INHERITED; |
| 36 | }; |
| 37 | |
| 38 | #endif |