Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 290 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 807 of file KeyHelpers.cpp.

810 {
811 VALIDATE_UNIFORMS(gatherer, keyContext.dict(), BuiltInCodeSnippetID::kCoeffBlender)
812 SkASSERT(coeffs.size() == 4);
813 gatherer->writeHalf(SkV4{coeffs[0], coeffs[1], coeffs[2], coeffs[3]});
814
816}
#define VALIDATE_UNIFORMS(gatherer, dict, codeSnippetID)
#define SkASSERT(cond)
Definition SkAssert.h:116
Definition SkM44.h:98

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