Flutter Engine
The Flutter Engine
|
#include <BlendFormula.h>
Public Types | |
enum | OutputType { kNone_OutputType , kCoverage_OutputType , kModulate_OutputType , kSAModulate_OutputType , kISAModulate_OutputType , kISCModulate_OutputType , kLast_OutputType = kISCModulate_OutputType } |
Public Member Functions | |
constexpr | BlendFormula (OutputType primaryOut, OutputType secondaryOut, skgpu::BlendEquation equation, skgpu::BlendCoeff srcCoeff, skgpu::BlendCoeff dstCoeff) |
BlendFormula (const BlendFormula &)=default | |
BlendFormula & | operator= (const BlendFormula &)=default |
bool | operator== (const BlendFormula &that) const |
bool | hasSecondaryOutput () const |
bool | modifiesDst () const |
bool | unaffectedByDst () const |
bool | unaffectedByDstIfOpaque () const |
bool | usesInputColor () const |
bool | canTweakAlphaForCoverage () const |
skgpu::BlendEquation | equation () const |
skgpu::BlendCoeff | srcCoeff () const |
skgpu::BlendCoeff | dstCoeff () const |
OutputType | primaryOutput () const |
OutputType | secondaryOutput () const |
Wraps the shader outputs and HW blend state that comprise a Porter Duff blend mode with coverage.
Definition at line 25 of file BlendFormula.h.
Values the shader can write to primary and secondary outputs. These are all modulated by coverage. We will ignore the multiplies when not using coverage.
Enumerator | |
---|---|
kNone_OutputType | |
kCoverage_OutputType | |
kModulate_OutputType | |
kSAModulate_OutputType | |
kISAModulate_OutputType | |
kISCModulate_OutputType | |
kLast_OutputType |
Definition at line 31 of file BlendFormula.h.
|
inlineconstexpr |
Definition at line 42 of file BlendFormula.h.
|
default |
|
inline |
|
inline |
Definition at line 95 of file BlendFormula.h.
|
inline |
Definition at line 87 of file BlendFormula.h.
|
inline |
Definition at line 66 of file BlendFormula.h.
|
inline |
Definition at line 69 of file BlendFormula.h.
|
default |
|
inline |
Definition at line 57 of file BlendFormula.h.
|
inline |
Definition at line 99 of file BlendFormula.h.
|
inline |
Definition at line 103 of file BlendFormula.h.
|
inline |
Definition at line 91 of file BlendFormula.h.
|
inline |
Definition at line 72 of file BlendFormula.h.
|
inline |
Definition at line 77 of file BlendFormula.h.
|
inline |
Definition at line 80 of file BlendFormula.h.
uint32_t skgpu::BlendFormula::fBlendEquation |
Definition at line 165 of file BlendFormula.h.
uint32_t skgpu::BlendFormula::fDstCoeff |
Definition at line 167 of file BlendFormula.h.
OutputType skgpu::BlendFormula::fPrimaryOutputType |
Definition at line 163 of file BlendFormula.h.
Properties skgpu::BlendFormula::fProps |
Definition at line 168 of file BlendFormula.h.
OutputType skgpu::BlendFormula::fSecondaryOutputType |
Definition at line 164 of file BlendFormula.h.
uint32_t skgpu::BlendFormula::fSrcCoeff |
Definition at line 166 of file BlendFormula.h.