48 const std::string_view&
name);
58 return std::make_unique<Setting>(
pos, fCapsPtr, &this->
type());
61 std::string_view
name()
const;
66 return "sk_Caps." + std::string(this->
name());
Expression(Position pos, Kind kind, const Type *type)
const Type & type() const
Setting(Position pos, CapsPtr capsPtr, const Type *type)
std::string description(OperatorPrecedence) const override
std::unique_ptr< Expression > toLiteral(const ShaderCaps &caps) const
std::unique_ptr< Expression > clone(Position pos) const override
static std::unique_ptr< Expression > Convert(const Context &context, Position pos, const std::string_view &name)
const bool ShaderCaps::* CapsPtr
static constexpr Kind kIRNodeKind
static std::unique_ptr< Expression > Make(const Context &context, Position pos, CapsPtr capsPtr)
std::string_view name() const