#include <SharedBuffer.h>
Public Member Functions | |
SrgBufferDescriptor (RPI::CommonBufferPoolType poolType, RHI::Format elementFormat, RHI::BufferBindFlags m_bindFlags, uint32_t elementSize, uint32_t elementCount, Name bufferName, Name paramNameInSrg, uint32_t resourceShaderIndex, uint32_t viewOffsetInBytes, uint8_t *bufferData=nullptr) | |
Public Attributes | |
RPI::CommonBufferPoolType | m_poolType = RPI::CommonBufferPoolType::ReadOnly |
RHI::Format | m_elementFormat |
RHI::BufferBindFlags | m_bindFlags |
The size in bytes of each element in the stream. | |
uint32_t | m_elementSize |
uint32_t | m_elementCount |
Amount of elements required to create the buffer. | |
Name | m_bufferName |
The name used for the buffer view - used for debug and tracking. | |
Name | m_paramNameInSrg |
The name used by the shader Srg in the GPU for this shader parameter. | |
uint32_t | m_resourceShaderIndex |
The assigned SRG slot in the CPU / GPU for this shader resource. | |
uint32_t | m_viewOffsetInBytes |
uint8_t * | m_bufferData = nullptr |
===================================================================== This structure contains information regarding the naming of the buffer on both the CPU and the GPU This structure is also used to determine the maximum alignment required for
RHI::Format AZ::Meshlets::SrgBufferDescriptor::m_elementFormat |
The format used for the buffer Should be Unknown for structured buffers, or R32 for raw buffers.
RPI::CommonBufferPoolType AZ::Meshlets::SrgBufferDescriptor::m_poolType = RPI::CommonBufferPoolType::ReadOnly |
Pool type to determine how a resource pool should be generated. This is used for buffers that are not part of the shared buffer.
uint32_t AZ::Meshlets::SrgBufferDescriptor::m_viewOffsetInBytes |
If using a buffer view within a shared buffer, this represents the view offset from the shared buffer origin in bytes.