![]() |
XII Release 0.1.0
|
This describes shader code variable. More...
#include <ShaderByteCode.h>
Public Member Functions | |
| XII_DECLARE_MEM_RELOCATABLE_TYPE () | |
Public Member Functions inherited from xiiHashableStruct< xiiGALShaderVariableDescription > | |
| constexpr | xiiHashableStruct () noexcept |
| Default constructor. Initializes all bytes to zero. | |
| xiiHashableStruct (const xiiHashableStruct &other) noexcept | |
| Bitwise copy constructor. | |
| xiiHashableStruct & | operator= (const xiiHashableStruct &other) noexcept |
| Bitwise assignment operator. | |
| bool | operator== (const xiiHashableStruct &other) const noexcept |
| Compares equality via raw byte comparison. | |
| std::strong_ordering | operator<=> (const xiiHashableStruct &other) const noexcept |
| Compares ordering via raw byte comparison. | |
| xiiUInt32 | CalculateHash () const noexcept |
| Calculates a 32-bit hash from raw bytes of the struct. | |
| void | Clear () noexcept |
| Fills all bytes with zero. | |
| bool | IsZero () const noexcept |
| Returns true if all bytes are zero. | |
Static Public Member Functions | |
| static void | CopyDataFromVariant (xiiUInt8 *pDestination, const xiiVariant *pValue, const xiiGALShaderVariableDescription &description) |
| This copies the data in a variant into into its destination, given its structure in the shader variable description. | |
Public Attributes | |
| xiiHashedString | m_sName |
| The variable name. | |
| xiiEnum< xiiGALShaderVariableClassType > | m_Class = xiiGALShaderVariableClassType::Unknown |
| The variable class. | |
| xiiEnum< xiiGALShaderPrimitiveType > | m_PrimitiveType = xiiGALShaderPrimitiveType::Unknown |
| The variable primitive data type.. | |
| xiiUInt8 | m_uiRowCount = 0U |
| For a matrix type, the number of rows. | |
| xiiUInt8 | m_uiColumnCount = 0U |
| For a matrix type, the number of columns. For a vector type, the number of components. | |
| xiiUInt32 | m_uiOffset = 0U |
| The offset in bytes between the start of the parent structure and this variable. | |
| xiiUInt32 | m_uiArraySize = 0U |
| The array size. | |
| xiiDynamicArray< xiiGALShaderVariableDescription > | m_Members |
| For a structure, an array of member variables. | |
This describes shader code variable.
|
static |
This copies the data in a variant into into its destination, given its structure in the shader variable description.