Flutter Engine
The Flutter Engine
|
#include <GrBezierEffect.h>
Classes | |
class | Impl |
Public Member Functions | |
~GrQuadEffect () override | |
const char * | name () const override |
void | addToKey (const GrShaderCaps &caps, skgpu::KeyBuilder *b) const override |
std::unique_ptr< ProgramImpl > | makeProgramImpl (const GrShaderCaps &) const override |
Public Member Functions inherited from GrGeometryProcessor | |
GrGeometryProcessor (ClassID) | |
int | numTextureSamplers () const |
const TextureSampler & | textureSampler (int index) const |
int | numVertexAttributes () const |
const AttributeSet & | vertexAttributes () const |
int | numInstanceAttributes () const |
const AttributeSet & | instanceAttributes () const |
bool | hasVertexAttributes () const |
bool | hasInstanceAttributes () const |
size_t | vertexStride () const |
size_t | instanceStride () const |
virtual void | addToKey (const GrShaderCaps &, skgpu::KeyBuilder *) const =0 |
void | getAttributeKey (skgpu::KeyBuilder *b) const |
virtual std::unique_ptr< ProgramImpl > | makeProgramImpl (const GrShaderCaps &) const =0 |
Public Member Functions inherited from GrProcessor | |
virtual | ~GrProcessor ()=default |
virtual const char * | name () const =0 |
void * | operator new (size_t size) |
void * | operator new (size_t object_size, size_t footer_size) |
void | operator delete (void *target) |
void * | operator new (size_t size, void *placement) |
void | operator delete (void *target, void *placement) |
template<typename T > | |
const T & | cast () const |
ClassID | classID () const |
Static Public Member Functions | |
static GrGeometryProcessor * | Make (SkArenaAlloc *arena, const SkPMColor4f &color, const SkMatrix &viewMatrix, const GrCaps &caps, const SkMatrix &localMatrix, bool usesLocalCoords, uint8_t coverage=0xff) |
Static Public Member Functions inherited from GrGeometryProcessor | |
static uint32_t | ComputeCoordTransformsKey (const GrFragmentProcessor &fp) |
The output of this effect is a hairline edge for quadratics. Quadratic specified by 0=u^2-v canonical coords. u and v are the first two components of the vertex attribute. At the three control points that define the Quadratic, u, v have the values {0,0}, {1/2, 0}, and {1, 1} respectively. Coverage for AA is min(0, 1-distance). 3rd & 4th cimponent unused. Requires shader derivative instruction support.
Definition at line 126 of file GrBezierEffect.h.
|
overridedefault |
|
overridevirtual |
Adds a key on the skgpu::KeyBuilder that reflects any variety in the code that the geometry processor subclass can emit.
Implements GrGeometryProcessor.
Definition at line 315 of file GrBezierEffect.cpp.
|
inlinestatic |
Definition at line 128 of file GrBezierEffect.h.
|
overridevirtual |
Returns a new instance of the appropriate implementation class for the given GrGeometryProcessor.
Implements GrGeometryProcessor.
Definition at line 326 of file GrBezierEffect.cpp.
|
inlineoverridevirtual |
Human-meaningful string to identify this processor; may be embedded in generated shader code and must be a legal SkSL identifier prefix.
Implements GrProcessor.
Definition at line 147 of file GrBezierEffect.h.