XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALShaderResourceDescription Struct Reference

This describes shader resource. More...

#include <ShaderByteCode.h>

Inheritance diagram for xiiGALShaderResourceDescription:
[legend]

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.
 
xiiHashableStructoperator= (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< xiiGALShaderResourceTypem_Type = xiiGALShaderResourceType::Unknown
 The shader resource type. The default is xiiGALShaderResourceType::Unknown.
 
xiiEnum< xiiGALShaderTextureTypem_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< xiiGALShaderTypem_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< xiiGALShaderVariableDescriptionm_Variables
 An array of member variables for shader constant buffer, or push constants.
 

Detailed Description

This describes shader resource.


The documentation for this struct was generated from the following file: