Flutter Engine
The Flutter Engine
Classes | Static Public Member Functions | List of all members
skgpu::graphite::RuntimeEffectBlock Struct Reference

#include <KeyHelpers.h>

Classes

struct  ShaderData
 

Static Public Member Functions

static void BeginBlock (const KeyContext &, PaintParamsKeyBuilder *, PipelineDataGatherer *, const ShaderData &)
 

Detailed Description

Definition at line 383 of file KeyHelpers.h.

Member Function Documentation

◆ BeginBlock()

void skgpu::graphite::RuntimeEffectBlock::BeginBlock ( const KeyContext keyContext,
PaintParamsKeyBuilder builder,
PipelineDataGatherer gatherer,
const ShaderData shaderData 
)
static

Definition at line 1145 of file KeyHelpers.cpp.

1148 {
1149 ShaderCodeDictionary* dict = keyContext.dict();
1150 int codeSnippetID = dict->findOrCreateRuntimeEffectSnippet(shaderData.fEffect.get());
1151
1153 keyContext.rtEffectDict()->set(codeSnippetID, shaderData.fEffect);
1154 }
1155
1156 const ShaderSnippet* entry = dict->getEntry(codeSnippetID);
1157 SkASSERT(entry);
1158
1160 shaderData.fEffect.get(),
1161 entry->fUniforms,
1162 shaderData.fUniforms.get(),
1163 gatherer);
1164
1165 builder->beginBlock(codeSnippetID);
1166}
#define SkASSERT(cond)
Definition: SkAssert.h:116
static constexpr int kUnknownRuntimeEffectIDStart
static void gather_runtime_effect_uniforms(const KeyContext &keyContext, const SkRuntimeEffect *effect, SkSpan< const Uniform > graphiteUniforms, const SkData *uniformData, PipelineDataGatherer *gatherer)

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