class Context; class Type; enumclass OperatorPrecedence : uint8_t;
/** * 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.
*/ class Setting final : public Expression { public: inlinestatic constexpr Kind kIRNodeKind = Kind::kSetting;
// Creates the current value of the associated caps bit as a Literal if ShaderCaps are // available, or a Setting IRNode when ShaderCaps are not known. Reports errors via the // ErrorReporter. static std::unique_ptr<Expression> Convert(const Context& context,
Position pos, const std::string_view& name);
// Creates the current value of the passed-in caps bit as a Literal if ShaderCaps are // available, or a Setting IRNode when ShaderCaps are not known. static std::unique_ptr<Expression> Make(const Context& context, Position pos, CapsPtr capsPtr);
// Converts a Setting expression to its actual ShaderCaps value (boolean true/false).
std::unique_ptr<Expression> toLiteral(const ShaderCaps& caps) const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.