![]() |
XII Release 0.1.0
|
This describes shader resource. More...
#include <ShaderByteCode.h>
Public Member Functions | |
| XII_DECLARE_MEM_RELOCATABLE_TYPE () | |
Public Member Functions inherited from xiiHashableStruct< xiiGALShaderResourceDescription > | |
| 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. | |
Public Attributes | |
| xiiHashedString | m_sName |
| The shader resource name. | |
| xiiEnum< xiiGALShaderResourceType > | m_Type = xiiGALShaderResourceType::Unknown |
| The shader resource type. The default is xiiGALShaderResourceType::Unknown. | |
| xiiEnum< xiiGALShaderTextureType > | m_TextureType = xiiGALShaderTextureType::Unknown |
| The shader resource texture type for Texture resources. The default is xiiGALShaderTextureType::Unknown. | |
| xiiUInt32 | m_uiArraySize = 0U |
| The array size. For a non-array resource this value should be 1. | |
| xiiUInt32 | m_uiBindIndex = xiiInvalidIndex |
| The resource binding index in the shader. | |
| xiiUInt32 | m_uiDescriptorSet = xiiInvalidIndex |
| The descriptor set to which this resource belongs to. | |
| xiiBitflags< xiiGALShaderType > | m_ShaderStages = xiiGALShaderType::Unknown |
| The shader stages to which this resource is bound. | |
| xiiUInt32 | m_uiTotalSize = 0U |
| For a resource with variables, the total size of the resource. | |
| xiiDynamicArray< xiiGALShaderVariableDescription > | m_Variables |
| An array of member variables for shader constant buffer, or push constants. | |
This describes shader resource.