A variant type that describes a value that can be used as a shader specialization constant.
More...
|
| | ShaderSpecializationConstant () |
| | Cretaes a new specialization constant with a default value of 0.
|
| |
| | ShaderSpecializationConstant (String string) |
| | Constructs a new specialization constant with a String.
|
| |
| | ShaderSpecializationConstant (const StringView string) |
| | Constructs a new specialization constant with a StringView.
|
| |
| | ShaderSpecializationConstant (const bool string) |
| | Constructs a new specialization constant with a bool.
|
| |
| | ShaderSpecializationConstant (const UInt8 string) |
| | Constructs a new specialization constant with a UInt8.
|
| |
| | ShaderSpecializationConstant (const UInt16 string) |
| | Constructs a new specialization constant with a UInt16.
|
| |
| | ShaderSpecializationConstant (const UInt32 string) |
| | Constructs a new specialization constant with a UInt32.
|
| |
| | ShaderSpecializationConstant (const Int8 string) |
| | Constructs a new specialization constant with a Int8.
|
| |
| | ShaderSpecializationConstant (const Int16 string) |
| | Constructs a new specialization constant with a Int16.
|
| |
| | ShaderSpecializationConstant (const Int32 string) |
| | Constructs a new specialization constant with a Int32.
|
| |
| | ShaderSpecializationConstant (const Int64 string) |
| | Constructs a new specialization constant with a Int64.
|
| |
| | ShaderSpecializationConstant (const ShaderSpecializationConstant &)=default |
| |
| ShaderSpecializationConstant & | operator= (const ShaderSpecializationConstant &)=default |
| |
| | ShaderSpecializationConstant (ShaderSpecializationConstant &&)=default |
| |
| ShaderSpecializationConstant & | operator= (ShaderSpecializationConstant &&)=default |
| |
| template<typename T > |
| bool | is () const noexcept |
| | Checks if the shader specialization constant holds a given type T.
|
| |
| template<> |
| bool | is () const noexcept |
| | Checks if the shader specialization has a value of type String.
|
| |
| template<> |
| bool | is () const noexcept |
| | Checks if the shader specialization has a value of type StringView.
|
| |
| template<> |
| bool | is () const noexcept |
| | Checks if the shader specialization has a value of type bool.
|
| |
| template<> |
| bool | is () const noexcept |
| | Checks if the shader specialization has a value of type UInt8.
|
| |
| template<> |
| bool | is () const noexcept |
| | Checks if the shader specialization has a value of type UInt16.
|
| |
| template<> |
| bool | is () const noexcept |
| | Checks if the shader specialization has a value of type UInt32.
|
| |
| template<> |
| bool | is () const noexcept |
| | Checks if the shader specialization has a value of type Int8.
|
| |
| template<> |
| bool | is () const noexcept |
| | Checks if the shader specialization has a value of type Int16.
|
| |
| template<> |
| bool | is () const noexcept |
| | Checks if the shader specialization has a value of type Int32.
|
| |
| template<> |
| bool | is () const noexcept |
| | Checks if the shader specialization has a value of type Int64.
|
| |
| template<typename T > |
| decltype(auto) | as () const |
| | Gets the shader specialization constant value as type T.
|
| |
| template<> |
| decltype(auto) | as () const |
| | Gets the specialization constant value as a String.
|
| |
| template<> |
| decltype(auto) | as () const |
| | Gets the specialization constant value as a StringView.
|
| |
| template<> |
| decltype(auto) | as () const |
| | Gets the specialization constant value as a bool.
|
| |
| template<> |
| decltype(auto) | as () const |
| | Gets the specialization constant value as a UInt8.
|
| |
| template<> |
| decltype(auto) | as () const |
| | Gets the specialization constant value as a UInt16.
|
| |
| template<> |
| decltype(auto) | as () const |
| | Gets the specialization constant value as a UInt32.
|
| |
| template<> |
| decltype(auto) | as () const |
| | Gets the specialization constant value as a Int8.
|
| |
| template<> |
| decltype(auto) | as () const |
| | Gets the specialization constant value as a Int16.
|
| |
| template<> |
| decltype(auto) | as () const |
| | Gets the specialization constant value as a Int32.
|
| |
| template<> |
| decltype(auto) | as () const |
| | Gets the specialization constant value as a Int64.
|
| |
|
| template<typename T > |
| bool | isConvertibleAs () const noexcept |
| | Checks if the value is numeric is a type and convertible to T.
|
| |
| template<typename T > |
| T | convertAs () const noexcept |
| | Converts a numeric type to T.
|
| |
| constexpr std::size_t | getIndex () const noexcept |
| |
| constexpr bool | is () const noexcept |
| |
| constexpr T & | as () & |
| |
| constexpr T && | as () && |
| |
| constexpr const T & | as () const & |
| |
| constexpr const T && | as () const && |
| |
| constexpr std::add_pointer_t< T > | asIf () noexcept |
| |
| constexpr std::add_pointer_t< const T > | asIf () const noexcept |
| |
| constexpr decltype(auto) | visit (Visitor &&visitor) & |
| |
| constexpr decltype(auto) | visit (Visitor &&visitor) && |
| |
| constexpr decltype(auto) | visit (Visitor &&visitor) const & |
| |
| constexpr decltype(auto) | visit (Visitor &&visitor) const && |
| |
A variant type that describes a value that can be used as a shader specialization constant.