Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RHI::ShaderInputConstantDescriptor Class Referencefinal

Public Member Functions

 AZ_TYPE_INFO (ShaderInputConstantDescriptor, "{C8DC7D2D-CCA0-45AD-9430-52C06B69325C}")
 
 ShaderInputConstantDescriptor (const Name &name, uint32_t constantByteOffset, uint32_t constantByteCount, uint32_t registerId, uint32_t spaceId)
 
HashValue64 GetHash (HashValue64 seed=HashValue64{ 0 }) const
 Returns the 64-bit hash of the binding.
 

Static Public Member Functions

static void Reflect (ReflectContext *context)
 

Public Attributes

Name m_name
 The name id used to reflect the constant input.
 
uint32_t m_constantByteOffset = 0
 The offset from the start of the constant buffer in bytes.
 
uint32_t m_constantByteCount = 0
 The number of bytes.
 
uint32_t m_registerId = UndefinedRegisterSlot
 
uint32_t m_spaceId = UndefinedRegisterSlot
 

Member Data Documentation

◆ m_registerId

uint32_t AZ::RHI::ShaderInputConstantDescriptor::m_registerId = UndefinedRegisterSlot

Register id of the resource in the SRG. This is only valid if the platform compiles the SRGs using "spaces". If not, this same information will be in the PipelineLayoutDescriptor. Some platforms (like Vulkan) need the register number when creating the SRG, others need it when creating the PipelineLayout.

◆ m_spaceId

uint32_t AZ::RHI::ShaderInputConstantDescriptor::m_spaceId = UndefinedRegisterSlot

Logical Register Space that the register id is within. This is primarily used when an SRG contains one or more unbounded arrays, as an unbounded array contains all register ids in a register space. If an SRG doesn't contain any unbounded arrays all resources in it will use the same space id.


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