Flutter Engine
The Flutter Engine
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 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

 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
Definition: ComputeStep.h:236

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 }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
Definition: switches.h:126

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