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

#include <KeyHelpers.h>

Static Public Member Functions

static void AddBlock (const KeyContext &, PaintParamsKeyBuilder *, PipelineDataGatherer *, SkSpan< const float > coeffs)
 

Detailed Description

Definition at line 301 of file KeyHelpers.h.

Member Function Documentation

◆ AddBlock()

void skgpu::graphite::CoeffBlenderBlock::AddBlock ( const KeyContext keyContext,
PaintParamsKeyBuilder builder,
PipelineDataGatherer gatherer,
SkSpan< const float >  coeffs 
)
static

Definition at line 948 of file KeyHelpers.cpp.

951 {
952 VALIDATE_UNIFORMS(gatherer, keyContext.dict(), BuiltInCodeSnippetID::kCoeffBlender)
953 SkASSERT(coeffs.size() == 4);
954 gatherer->writeHalf(SkV4{coeffs[0], coeffs[1], coeffs[2], coeffs[3]});
955
957}
#define VALIDATE_UNIFORMS(gatherer, dict, codeSnippetID)
Definition: KeyHelpers.cpp:84
#define SkASSERT(cond)
Definition: SkAssert.h:116
Definition: SkM44.h:98

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