Flutter Engine
The Flutter Engine
|
#include <SkSLStructDefinition.h>
Public Member Functions | |
StructDefinition (Position pos, const Type &type) | |
const Type & | type () const |
std::string | description () const override |
Public Member Functions inherited from SkSL::ProgramElement | |
ProgramElement (Position pos, Kind kind) | |
Kind | kind () const |
Public Member Functions inherited from SkSL::IRNode | |
virtual | ~IRNode () |
virtual std::string | description () const =0 |
IRNode (const IRNode &)=delete | |
IRNode & | operator= (const IRNode &)=delete |
Position | position () const |
void | setPosition (Position p) |
template<typename T > | |
bool | is () const |
template<typename T > | |
const T & | as () const |
template<typename T > | |
T & | as () |
Static Public Member Functions | |
static std::unique_ptr< StructDefinition > | Convert (const Context &context, Position pos, std::string_view name, skia_private::TArray< Field > fields) |
static std::unique_ptr< StructDefinition > | Make (Position pos, const Type &type) |
Static Public Member Functions inherited from SkSL::Poolable | |
static void * | operator new (const size_t size) |
static void | operator delete (void *ptr) |
Static Public Attributes | |
static constexpr Kind | kIRNodeKind = Kind::kStructDefinition |
Additional Inherited Members | |
Public Types inherited from SkSL::ProgramElement | |
using | Kind = ProgramElementKind |
Public Attributes inherited from SkSL::IRNode | |
Position | fPosition |
Protected Member Functions inherited from SkSL::IRNode | |
IRNode (Position position, int kind) | |
Protected Attributes inherited from SkSL::IRNode | |
int | fKind |
A struct at global scope, as in:
struct RenderData { float3 color; bool highQuality; };
Definition at line 33 of file SkSLStructDefinition.h.
Definition at line 37 of file SkSLStructDefinition.h.
|
static |
Definition at line 23 of file SkSLStructDefinition.cpp.
|
overridevirtual |
Implements SkSL::IRNode.
Definition at line 38 of file SkSLStructDefinition.cpp.
|
static |
Definition at line 34 of file SkSLStructDefinition.cpp.
|
inline |
Definition at line 48 of file SkSLStructDefinition.h.
|
inlinestaticconstexpr |
Definition at line 35 of file SkSLStructDefinition.h.