Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
skgpu::graphite::VelloFineMsaaStepBase< S, T, MaskLutBuilder > Class Template Reference

#include <VelloComputeSteps.h>

Inheritance diagram for skgpu::graphite::VelloFineMsaaStepBase< S, T, MaskLutBuilder >:
skgpu::graphite::VelloFineStepBase< S, T > skgpu::graphite::VelloStep< S > skgpu::graphite::ComputeStep

Public Member Functions

size_t calculateBufferSize (int resourceIndex, const ComputeStep::ResourceDesc &) const override
 
void prepareStorageBuffer (int resourceIndex, const ComputeStep::ResourceDesc &, void *buffer, size_t bufferSize) const override
 
- Public Member Functions inherited from skgpu::graphite::VelloFineStepBase< S, T >
std::tuple< SkISize, SkColorTypecalculateTextureParameters (int index, const ComputeStep::ResourceDesc &) const override
 
- Public Member Functions inherited from skgpu::graphite::VelloStep< S >
 ~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 SamplerDesc calculateSamplerParameters (int resourceIndex, const ResourceDesc &) const
 
virtual WorkgroupSize calculateGlobalDispatchSize () 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

 VelloFineMsaaStepBase (SkSpan< const ComputeStep::ResourceDesc > resources)
 
- Protected Member Functions inherited from skgpu::graphite::VelloFineStepBase< S, T >
 VelloFineStepBase (SkSpan< const ComputeStep::ResourceDesc > resources)
 
- Protected Member Functions inherited from skgpu::graphite::VelloStep< S >
 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, SkColorType T, ::rust::Vec< uint8_t >(*)() MaskLutBuilder>
class skgpu::graphite::VelloFineMsaaStepBase< S, T, MaskLutBuilder >

Definition at line 271 of file VelloComputeSteps.h.

Constructor & Destructor Documentation

◆ VelloFineMsaaStepBase()

template<vello_cpp::ShaderStage S, SkColorType T, ::rust::Vec< uint8_t >(*)() MaskLutBuilder>
skgpu::graphite::VelloFineMsaaStepBase< S, T, MaskLutBuilder >::VelloFineMsaaStepBase ( SkSpan< const ComputeStep::ResourceDesc resources)
inlineexplicitprotected

Definition at line 288 of file VelloComputeSteps.h.

289 : VelloFineStepBase<S, T>(resources), fMaskLut(MaskLutBuilder()) {}
SkSpan< const ResourceDesc > resources() const

Member Function Documentation

◆ calculateBufferSize()

template<vello_cpp::ShaderStage S, SkColorType T, ::rust::Vec< uint8_t >(*)() MaskLutBuilder>
size_t skgpu::graphite::VelloFineMsaaStepBase< S, T, MaskLutBuilder >::calculateBufferSize ( int  resourceIndex,
const ComputeStep::ResourceDesc  
) const
inlineoverridevirtual

Reimplemented from skgpu::graphite::ComputeStep.

Definition at line 273 of file VelloComputeSteps.h.

273 {
274 SkASSERT(resourceIndex == 5);
275 return fMaskLut.size();
276 }
#define SkASSERT(cond)
Definition SkAssert.h:116

◆ prepareStorageBuffer()

template<vello_cpp::ShaderStage S, SkColorType T, ::rust::Vec< uint8_t >(*)() MaskLutBuilder>
void skgpu::graphite::VelloFineMsaaStepBase< S, T, MaskLutBuilder >::prepareStorageBuffer ( int  resourceIndex,
const ComputeStep::ResourceDesc ,
void *  buffer,
size_t  bufferSize 
) const
inlineoverridevirtual

Reimplemented from skgpu::graphite::ComputeStep.

Definition at line 278 of file VelloComputeSteps.h.

281 {
282 SkASSERT(resourceIndex == 5);
283 SkASSERT(fMaskLut.size() == bufferSize);
284 memcpy(buffer, fMaskLut.data(), fMaskLut.size());
285 }
static const uint8_t buffer[]

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