Flutter Engine
The Flutter Engine
|
#include <ShaderCodeDictionary.h>
Classes | |
struct | Args |
Public Types | |
using | GeneratePreambleForSnippetFn = std::string(*)(const ShaderInfo &shaderInfo, const ShaderNode *) |
using | GenerateExpressionForSnippetFn = std::string(*)(const ShaderInfo &shaderInfo, const ShaderNode *, const Args &args) |
Public Member Functions | |
ShaderSnippet ()=default | |
ShaderSnippet (const char *name, SkSpan< const Uniform > uniforms, SkEnumBitMask< SnippetRequirementFlags > snippetRequirementFlags, SkSpan< const TextureAndSampler > texturesAndSamplers, const char *functionName, GenerateExpressionForSnippetFn expressionGenerator, GeneratePreambleForSnippetFn preambleGenerator, int numChildren) | |
bool | needsLocalCoords () const |
bool | needsPriorStageOutput () const |
bool | needsBlenderDstColor () const |
bool | storesData () const |
Public Attributes | |
const char * | fName = nullptr |
SkSpan< const Uniform > | fUniforms |
SkEnumBitMask< SnippetRequirementFlags > | fSnippetRequirementFlags {SnippetRequirementFlags::kNone} |
SkSpan< const TextureAndSampler > | fTexturesAndSamplers |
const char * | fStaticFunctionName = nullptr |
GenerateExpressionForSnippetFn | fExpressionGenerator = nullptr |
GeneratePreambleForSnippetFn | fPreambleGenerator = nullptr |
int | fNumChildren = 0 |
Definition at line 76 of file ShaderCodeDictionary.h.
using skgpu::graphite::ShaderSnippet::GenerateExpressionForSnippetFn = std::string (*)(const ShaderInfo& shaderInfo, const ShaderNode*, const Args& args) |
Definition at line 84 of file ShaderCodeDictionary.h.
using skgpu::graphite::ShaderSnippet::GeneratePreambleForSnippetFn = std::string (*)(const ShaderInfo& shaderInfo, const ShaderNode*) |
Definition at line 77 of file ShaderCodeDictionary.h.
|
default |
|
inline |
Definition at line 90 of file ShaderCodeDictionary.h.
|
inline |
Definition at line 113 of file ShaderCodeDictionary.h.
|
inline |
Definition at line 107 of file ShaderCodeDictionary.h.
|
inline |
Definition at line 110 of file ShaderCodeDictionary.h.
|
inline |
Definition at line 116 of file ShaderCodeDictionary.h.
GenerateExpressionForSnippetFn skgpu::graphite::ShaderSnippet::fExpressionGenerator = nullptr |
Definition at line 125 of file ShaderCodeDictionary.h.
const char* skgpu::graphite::ShaderSnippet::fName = nullptr |
Definition at line 120 of file ShaderCodeDictionary.h.
int skgpu::graphite::ShaderSnippet::fNumChildren = 0 |
Definition at line 127 of file ShaderCodeDictionary.h.
GeneratePreambleForSnippetFn skgpu::graphite::ShaderSnippet::fPreambleGenerator = nullptr |
Definition at line 126 of file ShaderCodeDictionary.h.
SkEnumBitMask<SnippetRequirementFlags> skgpu::graphite::ShaderSnippet::fSnippetRequirementFlags {SnippetRequirementFlags::kNone} |
Definition at line 122 of file ShaderCodeDictionary.h.
const char* skgpu::graphite::ShaderSnippet::fStaticFunctionName = nullptr |
Definition at line 124 of file ShaderCodeDictionary.h.
SkSpan<const TextureAndSampler> skgpu::graphite::ShaderSnippet::fTexturesAndSamplers |
Definition at line 123 of file ShaderCodeDictionary.h.
Definition at line 121 of file ShaderCodeDictionary.h.