Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
skgpu::graphite::VelloStep< S > Class Template Reference

#include <VelloComputeSteps.h>

Inheritance diagram for skgpu::graphite::VelloStep< S >:
skgpu::graphite::ComputeStep skgpu::graphite::VelloFineStepBase< vello_cpp::ShaderStage::FineAreaR8, kAlpha_8_SkColorType > skgpu::graphite::VelloFineStepBase< vello_cpp::ShaderStage::FineArea, kRGBA_8888_SkColorType > skgpu::graphite::VelloFineStepBase< S, T > skgpu::graphite::VelloFineAreaAlpha8Step skgpu::graphite::VelloFineAreaStep skgpu::graphite::VelloFineMsaaStepBase< vello_cpp::ShaderStage::FineMsaa16R8, kAlpha_8_SkColorType, vello_cpp::build_mask_lut_16 > skgpu::graphite::VelloFineMsaaStepBase< vello_cpp::ShaderStage::FineMsaa16, kRGBA_8888_SkColorType, vello_cpp::build_mask_lut_16 > skgpu::graphite::VelloFineMsaaStepBase< vello_cpp::ShaderStage::FineMsaa8R8, kAlpha_8_SkColorType, vello_cpp::build_mask_lut_8 > skgpu::graphite::VelloFineMsaaStepBase< vello_cpp::ShaderStage::FineMsaa8, kRGBA_8888_SkColorType, vello_cpp::build_mask_lut_8 > skgpu::graphite::VelloFineMsaaStepBase< S, T, MaskLutBuilder > skgpu::graphite::VelloFineMsaa16Alpha8Step skgpu::graphite::VelloFineMsaa16Step skgpu::graphite::VelloFineMsaa8Alpha8Step skgpu::graphite::VelloFineMsaa8Step

Public Member Functions

 ~VelloStep () override=default
 
NativeShaderSource nativeShaderSource (NativeShaderFormat format) const override
 
- Public Member Functions inherited from skgpu::graphite::ComputeStep
virtual ~ComputeStep ()=default
 
virtual std::string computeSkSL () const
 
virtual NativeShaderSource nativeShaderSource (NativeShaderFormat) const
 
virtual size_t calculateBufferSize (int resourceIndex, const ResourceDesc &) const
 
virtual std::tuple< SkISize, SkColorTypecalculateTextureParameters (int resourceIndex, const ResourceDesc &) const
 
virtual SamplerDesc calculateSamplerParameters (int resourceIndex, const ResourceDesc &) const
 
virtual WorkgroupSize calculateGlobalDispatchSize () const
 
virtual void prepareStorageBuffer (int resourceIndex, const ResourceDesc &resource, void *buffer, size_t bufferSize) const
 
virtual void prepareUniformBuffer (int resourceIndex, const ResourceDesc &, UniformManager *) const
 
SkSpan< const ResourceDescresources () const
 
SkSpan< const WorkgroupBufferDescworkgroupBuffers () const
 
uint32_t uniqueID () const
 
const char * name () const
 
WorkgroupSize localDispatchSize () const
 
bool supportsNativeShader () const
 

Protected Member Functions

 VelloStep (SkSpan< const ResourceDesc > resources)
 
- Protected Member Functions inherited from skgpu::graphite::ComputeStep
 ComputeStep (std::string_view name, WorkgroupSize localDispatchSize, SkSpan< const ResourceDesc > resources, SkSpan< const WorkgroupBufferDesc > workgroupBuffers={}, Flags baseFlags=Flags::kNone)
 

Additional Inherited Members

- Public Types inherited from skgpu::graphite::ComputeStep
enum class  DataFlow { kPrivate , kShared }
 
enum class  ResourceType {
  kUniformBuffer , kStorageBuffer , kReadOnlyStorageBuffer , kIndirectBuffer ,
  kWriteOnlyStorageTexture , kReadOnlyTexture , kSampledTexture
}
 
enum class  ResourcePolicy { kNone , kClear , kMapped }
 
enum class  NativeShaderFormat { kWGSL , kMSL }
 
- Protected Types inherited from skgpu::graphite::ComputeStep
enum class  Flags : uint8_t { kNone = 0b00000 , kSupportsNativeShader = 0b00010 }
 

Detailed Description

template<vello_cpp::ShaderStage S>
class skgpu::graphite::VelloStep< S >

Definition at line 189 of file VelloComputeSteps.h.

Constructor & Destructor Documentation

◆ ~VelloStep()

template<vello_cpp::ShaderStage S>
skgpu::graphite::VelloStep< S >::~VelloStep ( )
overridedefault

◆ VelloStep()

template<vello_cpp::ShaderStage S>
skgpu::graphite::VelloStep< S >::VelloStep ( SkSpan< const ResourceDesc resources)
inlineexplicitprotected

Definition at line 198 of file VelloComputeSteps.h.

201 resources,
202 AsSpan<ComputeStep::WorkgroupBufferDesc>(VelloWorkgroupBuffers(S)),
SkSpan< const ResourceDesc > resources() const
Definition: ComputeStep.h:236
ComputeStep(std::string_view name, WorkgroupSize localDispatchSize, SkSpan< const ResourceDesc > resources, SkSpan< const WorkgroupBufferDesc > workgroupBuffers={}, Flags baseFlags=Flags::kNone)
Definition: ComputeStep.cpp:28
skia_private::TArray< ComputeStep::WorkgroupBufferDesc > VelloWorkgroupBuffers(vello_cpp::ShaderStage stage)
std::string_view VelloStageName(vello_cpp::ShaderStage stage)
WorkgroupSize VelloStageLocalSize(vello_cpp::ShaderStage stage)

Member Function Documentation

◆ nativeShaderSource()

template<vello_cpp::ShaderStage S>
NativeShaderSource skgpu::graphite::VelloStep< S >::nativeShaderSource ( NativeShaderFormat  format) const
inlineoverridevirtual

Reimplemented from skgpu::graphite::ComputeStep.

Definition at line 193 of file VelloComputeSteps.h.

193 {
195 }
uint32_t uint32_t * format
ComputeStep::NativeShaderSource VelloNativeShaderSource(vello_cpp::ShaderStage stage, ComputeStep::NativeShaderFormat format)

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