Flutter Engine
The Flutter Engine
GrVkDescriptorSet.h
Go to the documentation of this file.
1/*
2* Copyright 2016 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 GrVkDescriptorSet_DEFINED
9#define GrVkDescriptorSet_DEFINED
10
14
15#include <cinttypes>
16
18class GrVkGpu;
19
21public:
23 VkDescriptorSet descSet,
25 GrVkDescriptorSetManager::Handle handle);
26
27 ~GrVkDescriptorSet() override {}
28
29 const VkDescriptorSet* descriptorSet() const { return &fDescSet; }
30
31#ifdef SK_TRACE_MANAGED_RESOURCES
32 void dumpInfo() const override {
33 SkDebugf("GrVkDescriptorSet: %" PRIdPTR " (%d refs)\n", (intptr_t)fDescSet,
34 this->getRefCnt());
35 }
36#endif
37
38private:
39 void freeGPUData() const override;
40 void onRecycle() const override;
41
42 VkDescriptorSet fDescSet;
43 SkDEBUGCODE(mutable) GrVkDescriptorPool* fPool;
44 GrVkDescriptorSetManager::Handle fHandle;
45
46 using INHERITED = GrVkRecycledResource;
47};
48
49#endif
AutoreleasePool pool
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
~GrVkDescriptorSet() override
const VkDescriptorSet * descriptorSet() const
GrVkDescriptorSet(GrVkGpu *gpu, VkDescriptorSet descSet, GrVkDescriptorPool *pool, GrVkDescriptorSetManager::Handle handle)