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" 13 #include "vk/GrVkTypes.h" 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 31 void freeGPUData(GrVkGpu* gpu) const override; 32 33 VkPipelineLayout fPipelineLayout; 34 35 typedef GrVkResource INHERITED; 36 }; 37 38 #endif 39