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

#include <KeyHelpers.h>

Classes

struct  DitherData
 

Static Public Member Functions

static void AddBlock (const KeyContext &, PaintParamsKeyBuilder *, PipelineDataGatherer *, const DitherData &)
 

Detailed Description

Definition at line 239 of file KeyHelpers.h.

Member Function Documentation

◆ AddBlock()

void skgpu::graphite::DitherShaderBlock::AddBlock ( const KeyContext keyContext,
PaintParamsKeyBuilder builder,
PipelineDataGatherer gatherer,
const DitherData data 
)
static

Definition at line 876 of file KeyHelpers.cpp.

879 {
880 add_dither_uniform_data(keyContext.dict(), data, gatherer);
881
883 static constexpr SkTileMode kRepeatTiling[2] = { SkTileMode::kRepeat, SkTileMode::kRepeat };
884
885 SkASSERT(data.fLUTProxy || !keyContext.recorder());
886 gatherer->add(data.fLUTProxy, {kNearest, kRepeatTiling});
887
889}
#define SkASSERT(cond)
Definition: SkAssert.h:116
SkTileMode
Definition: SkTileMode.h:13
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

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