Flutter Engine
The Flutter Engine
|
#include <VulkanDescriptorSet.h>
Public Member Functions | |
VulkanDescriptorSet (const VulkanSharedContext *, VkDescriptorSet, sk_sp< VulkanDescriptorPool >) | |
const VkDescriptorSet * | descriptorSet () |
const char * | getResourceType () const override |
Public Member Functions inherited from skgpu::graphite::Resource | |
Resource (const Resource &)=delete | |
Resource (Resource &&)=delete | |
Resource & | operator= (const Resource &)=delete |
Resource & | operator= (Resource &&)=delete |
void | ref () const |
void | unref () const |
void | refCommandBuffer () const |
void | unrefCommandBuffer () const |
Ownership | ownership () const |
skgpu::Budgeted | budgeted () const |
size_t | gpuMemorySize () const |
UniqueID | uniqueID () const |
virtual const char * | getResourceType () const =0 |
std::string | getLabel () const |
void | setLabel (std::string_view label) |
bool | wasDestroyed () const |
const GraphiteResourceKey & | key () const |
void | setKey (const GraphiteResourceKey &key) |
void | dumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump) const |
virtual void | prepareForReturnToCache (const std::function< void()> &takeRef) |
Static Public Member Functions | |
static sk_sp< VulkanDescriptorSet > | Make (const VulkanSharedContext *, const sk_sp< VulkanDescriptorPool > &) |
Additional Inherited Members | |
Protected Member Functions inherited from skgpu::graphite::Resource | |
Resource (const SharedContext *, Ownership, skgpu::Budgeted, size_t gpuMemorySize, bool commandBufferRefsAsUsageRefs=false) | |
virtual | ~Resource () |
const SharedContext * | sharedContext () const |
virtual void | onDumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump, const char *dumpName) const |
void | setDeleteASAP () |
Wrapper around VkDescriptorSet which maintains a reference to its descriptor pool. Once the ref count on that pool is 0, it will be destroyed.
Definition at line 25 of file VulkanDescriptorSet.h.
skgpu::graphite::VulkanDescriptorSet::VulkanDescriptorSet | ( | const VulkanSharedContext * | ctxt, |
VkDescriptorSet | set, | ||
sk_sp< VulkanDescriptorPool > | pool | ||
) |
Definition at line 35 of file VulkanDescriptorSet.cpp.
|
inline |
Definition at line 34 of file VulkanDescriptorSet.h.
|
inlineoverridevirtual |
Implements skgpu::graphite::Resource.
Definition at line 36 of file VulkanDescriptorSet.h.
|
static |
Definition at line 15 of file VulkanDescriptorSet.cpp.