Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
skgpu::graphite::ComputePipeline Class Reference

#include <ComputePipeline.h>

Inheritance diagram for skgpu::graphite::ComputePipeline:
skgpu::graphite::Resource skgpu::graphite::DawnComputePipeline skgpu::graphite::MtlComputePipeline

Public Member Functions

 ~ComputePipeline () override=default
 
const char * getResourceType () const override
 
- Public Member Functions inherited from skgpu::graphite::Resource
 Resource (const Resource &)=delete
 
 Resource (Resource &&)=delete
 
Resourceoperator= (const Resource &)=delete
 
Resourceoperator= (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 GraphiteResourceKeykey () const
 
void setKey (const GraphiteResourceKey &key)
 
void dumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump) const
 
virtual void prepareForReturnToCache (const std::function< void()> &takeRef)
 

Protected Member Functions

 ComputePipeline (const SharedContext *)
 
- Protected Member Functions inherited from skgpu::graphite::Resource
 Resource (const SharedContext *, Ownership, skgpu::Budgeted, size_t gpuMemorySize, bool commandBufferRefsAsUsageRefs=false)
 
virtual ~Resource ()
 
const SharedContextsharedContext () const
 
virtual void onDumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump, const char *dumpName) const
 
void setDeleteASAP ()
 

Detailed Description

ComputePipeline corresponds to a backend specific pipeline used for compute (vs rendering), e.g. MTLComputePipelineState (Metal), CreateComputePipeline (Dawn), CreateComputePipelineState (D3D12), or VkComputePipelineCreateInfo (Vulkan).

Definition at line 24 of file ComputePipeline.h.

Constructor & Destructor Documentation

◆ ~ComputePipeline()

skgpu::graphite::ComputePipeline::~ComputePipeline ( )
overridedefault

◆ ComputePipeline()

skgpu::graphite::ComputePipeline::ComputePipeline ( const SharedContext sharedContext)
explicitprotected

Definition at line 12 of file ComputePipeline.cpp.

16 /*gpuMemorySize=*/0) {}
Resource(const Resource &)=delete
const SharedContext * sharedContext() const
Definition: Resource.h:189

Member Function Documentation

◆ getResourceType()

const char * skgpu::graphite::ComputePipeline::getResourceType ( ) const
inlineoverridevirtual

Implements skgpu::graphite::Resource.

Definition at line 32 of file ComputePipeline.h.

32{ return "Compute Pipeline"; }

The documentation for this class was generated from the following files: