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 >
 xiiHashableStruct (const xiiHashableStruct< xiiGALShaderResourceDescription > &other)
 
void operator= (const xiiHashableStruct< xiiGALShaderResourceDescription > &other)
 
XII_ALWAYS_INLINE constexpr bool operator== (const xiiHashableStruct< xiiGALShaderResourceDescription > &rhs) const=default
 
xiiUInt32 CalculateHash () const
 Calculates the 32 bit hash of the struct and returns it.
 

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: