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

#include <KeyHelpers.h>

Public Member Functions

 ShaderData (sk_sp< const SkRuntimeEffect > effect)
 
 ShaderData (sk_sp< const SkRuntimeEffect > effect, sk_sp< const SkData > uniforms)
 
bool operator== (const ShaderData &rhs) const
 
bool operator!= (const ShaderData &rhs) const
 

Public Attributes

sk_sp< const SkRuntimeEffectfEffect
 
sk_sp< const SkDatafUniforms
 

Detailed Description

Definition at line 384 of file KeyHelpers.h.

Constructor & Destructor Documentation

◆ ShaderData() [1/2]

skgpu::graphite::RuntimeEffectBlock::ShaderData::ShaderData ( sk_sp< const SkRuntimeEffect effect)

Definition at line 1080 of file KeyHelpers.cpp.

1081 : fEffect(std::move(effect)) {}
sk_sp< const SkRuntimeEffect > fEffect
Definition: KeyHelpers.h:397

◆ ShaderData() [2/2]

skgpu::graphite::RuntimeEffectBlock::ShaderData::ShaderData ( sk_sp< const SkRuntimeEffect effect,
sk_sp< const SkData uniforms 
)

Definition at line 1083 of file KeyHelpers.cpp.

1085 : fEffect(std::move(effect))
1086 , fUniforms(std::move(uniforms)) {}

Member Function Documentation

◆ operator!=()

bool skgpu::graphite::RuntimeEffectBlock::ShaderData::operator!= ( const ShaderData rhs) const
inline

Definition at line 394 of file KeyHelpers.h.

394{ return !(*this == rhs); }

◆ operator==()

bool skgpu::graphite::RuntimeEffectBlock::ShaderData::operator== ( const ShaderData rhs) const

Definition at line 1094 of file KeyHelpers.cpp.

1094 {
1095 return fEffect == rhs.fEffect && skdata_matches(fUniforms.get(), rhs.fUniforms.get());
1096}
T * get() const
Definition: SkRefCnt.h:303
static bool skdata_matches(const SkData *a, const SkData *b)

Member Data Documentation

◆ fEffect

sk_sp<const SkRuntimeEffect> skgpu::graphite::RuntimeEffectBlock::ShaderData::fEffect

Definition at line 397 of file KeyHelpers.h.

◆ fUniforms

sk_sp<const SkData> skgpu::graphite::RuntimeEffectBlock::ShaderData::fUniforms

Definition at line 398 of file KeyHelpers.h.


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