Flutter Engine
The Flutter Engine
|
#include <SkSLProgram.h>
Classes | |
class | ElementsCollection |
Public Types | |
using | Interface = ProgramInterface |
Public Member Functions | |
Program (std::unique_ptr< std::string > source, std::unique_ptr< ProgramConfig > config, std::shared_ptr< Context > context, std::vector< std::unique_ptr< ProgramElement > > elements, std::unique_ptr< SymbolTable > symbols, std::unique_ptr< Pool > pool) | |
~Program () | |
ElementsCollection | elements () const |
const FunctionDeclaration * | getFunction (const char *functionName) const |
std::string | description () const |
const ProgramUsage * | usage () const |
Public Attributes | |
std::unique_ptr< std::string > | fSource |
std::unique_ptr< ProgramConfig > | fConfig |
std::shared_ptr< Context > | fContext |
std::unique_ptr< ProgramUsage > | fUsage |
std::unique_ptr< SymbolTable > | fSymbols |
std::unique_ptr< Pool > | fPool |
std::vector< std::unique_ptr< ProgramElement > > | fOwnedElements |
std::vector< const ProgramElement * > | fSharedElements |
ProgramInterface | fInterface |
Represents a fully-digested program, ready for code generation.
Definition at line 65 of file SkSLProgram.h.
Definition at line 167 of file SkSLProgram.h.
SkSL::Program::Program | ( | std::unique_ptr< std::string > | source, |
std::unique_ptr< ProgramConfig > | config, | ||
std::shared_ptr< Context > | context, | ||
std::vector< std::unique_ptr< ProgramElement > > | elements, | ||
std::unique_ptr< SymbolTable > | symbols, | ||
std::unique_ptr< Pool > | pool | ||
) |
Definition at line 22 of file SkSLProgram.cpp.
SkSL::Program::~Program | ( | ) |
Definition at line 37 of file SkSLProgram.cpp.
std::string SkSL::Program::description | ( | ) | const |
Definition at line 48 of file SkSLProgram.cpp.
|
inline |
Iterates over all elements in this Program, both owned and shared (builtin). The iterator's value type is const ProgramElement*
, so it's clear that you must not modify anything (as you might be mutating shared data).
Definition at line 140 of file SkSLProgram.h.
const FunctionDeclaration * SkSL::Program::getFunction | ( | const char * | functionName | ) | const |
Returns a function declaration with the given name; null is returned if the function doesn't exist or has no definition. If the function might have overloads, you can use nextOverload() to search for the function with the expected parameter list.
Definition at line 56 of file SkSLProgram.cpp.
|
inline |
Definition at line 150 of file SkSLProgram.h.
std::unique_ptr<ProgramConfig> SkSL::Program::fConfig |
Definition at line 153 of file SkSLProgram.h.
std::shared_ptr<Context> SkSL::Program::fContext |
Definition at line 154 of file SkSLProgram.h.
ProgramInterface SkSL::Program::fInterface |
Definition at line 165 of file SkSLProgram.h.
std::vector<std::unique_ptr<ProgramElement> > SkSL::Program::fOwnedElements |
Definition at line 161 of file SkSLProgram.h.
std::unique_ptr<Pool> SkSL::Program::fPool |
Definition at line 159 of file SkSLProgram.h.
std::vector<const ProgramElement*> SkSL::Program::fSharedElements |
Definition at line 164 of file SkSLProgram.h.
std::unique_ptr<std::string> SkSL::Program::fSource |
Definition at line 152 of file SkSLProgram.h.
std::unique_ptr<SymbolTable> SkSL::Program::fSymbols |
Definition at line 158 of file SkSLProgram.h.
std::unique_ptr<ProgramUsage> SkSL::Program::fUsage |
Definition at line 155 of file SkSLProgram.h.