Flutter Engine
The Flutter Engine
|
#include <SkSLSetting.h>
Public Types | |
using | CapsPtr = const bool ShaderCaps::* |
Public Types inherited from SkSL::Expression | |
enum class | ComparisonResult { kUnknown = -1 , kNotEqual , kEqual } |
using | Kind = ExpressionKind |
Public Member Functions | |
Setting (Position pos, CapsPtr capsPtr, const Type *type) | |
std::unique_ptr< Expression > | toLiteral (const ShaderCaps &caps) const |
std::unique_ptr< Expression > | clone (Position pos) const override |
std::string_view | name () const |
CapsPtr | capsPtr () const |
std::string | description (OperatorPrecedence) const override |
Public Member Functions inherited from SkSL::Expression | |
Expression (Position pos, Kind kind, const Type *type) | |
Kind | kind () const |
const Type & | type () const |
bool | isAnyConstructor () const |
bool | isIntLiteral () const |
bool | isFloatLiteral () const |
bool | isBoolLiteral () const |
AnyConstructor & | asAnyConstructor () |
const AnyConstructor & | asAnyConstructor () const |
bool | isIncomplete (const Context &context) const |
virtual ComparisonResult | compareConstant (const Expression &other) const |
CoercionCost | coercionCost (const Type &target) const |
virtual bool | supportsConstantValues () const |
virtual std::optional< double > | getConstantValue (int n) const |
virtual std::unique_ptr< Expression > | clone (Position pos) const =0 |
std::unique_ptr< Expression > | clone () const |
std::string | description () const final |
virtual std::string | description (OperatorPrecedence parentPrecedence) const =0 |
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< Expression > | Convert (const Context &context, Position pos, const std::string_view &name) |
static std::unique_ptr< Expression > | Make (const Context &context, Position pos, CapsPtr capsPtr) |
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::kSetting |
Additional Inherited Members | |
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 |
Represents a compile-time constant setting, such as sk_Caps.integerSupport. These IRNodes are used when assembling a module. These nodes are replaced with the value of the setting during compilation when ShaderCaps are available.
Definition at line 33 of file SkSLSetting.h.
using SkSL::Setting::CapsPtr = const bool ShaderCaps::* |
Definition at line 37 of file SkSLSetting.h.
Definition at line 39 of file SkSLSetting.h.
|
inline |
Definition at line 63 of file SkSLSetting.h.
|
inlineoverridevirtual |
Implements SkSL::Expression.
Definition at line 57 of file SkSLSetting.h.
|
static |
Definition at line 63 of file SkSLSetting.cpp.
|
inlineoverridevirtual |
Implements SkSL::Expression.
Definition at line 65 of file SkSLSetting.h.
|
static |
Definition at line 82 of file SkSLSetting.cpp.
std::string_view SkSL::Setting::name | ( | ) | const |
Definition at line 54 of file SkSLSetting.cpp.
std::unique_ptr< Expression > SkSL::Setting::toLiteral | ( | const ShaderCaps & | caps | ) | const |
Definition at line 88 of file SkSLSetting.cpp.
|
inlinestaticconstexpr |
Definition at line 35 of file SkSLSetting.h.