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

Static Public Member Functions

static Data::Instance< RPI::ShaderResourceGroup > CreateShaderResourceGroup (Data::Instance< RPI::Shader > shader, const char *shaderResourceGroupId, const char *moduleName)
 
static Data::Instance< RPI::Buffer > CreateBuffer (const char *warningHeader, SrgBufferDescriptor &bufferDesc, Data::Instance< RPI::ShaderResourceGroup > srg=nullptr)
 
static Data::Instance< RPI::Buffer > CreateBufferAndBindToSrg (const char *warningHeader, SrgBufferDescriptor &bufferDesc, Data::Instance< RPI::ShaderResourceGroup > srg)
 
static bool BindBufferToSrg (const char *warningHeader, Data::Instance< RPI::Buffer > buffer, SrgBufferDescriptor &bufferDesc, Data::Instance< RPI::ShaderResourceGroup > srg=nullptr)
 
static Data::Instance< RHI::BufferView > CreateSharedBufferView (const char *warningHeader, SrgBufferDescriptor &bufferDesc, Data::Instance< Meshlets::SharedBufferAllocation > &bufferAllocator)
 
static bool BindBufferViewToSrg ([[maybe_unused]] const char *warningHeader, Data::Instance< RHI::BufferView > bufferView, SrgBufferDescriptor &bufferDesc, Data::Instance< RPI::ShaderResourceGroup > srg)
 
static Data::Instance< RHI::BufferView > CreateSharedBufferViewAndBindToSrg (const char *warningHeader, SrgBufferDescriptor &bufferDesc, Data::Instance< Meshlets::SharedBufferAllocation > &outputBufferAllocator, Data::Instance< RPI::ShaderResourceGroup > srg)
 
static RHI::BufferViewDescriptor CreateResourceViewWithDifferentFormat (uint32_t offsetInBytes, uint32_t elementCount, uint32_t elementSize, RHI::Format format, RHI::BufferBindFlags overrideBindFlags)
 

Member Function Documentation

◆ CreateResourceViewWithDifferentFormat()

static RHI::BufferViewDescriptor AZ::Meshlets::UtilityClass::CreateResourceViewWithDifferentFormat ( uint32_t  offsetInBytes,
uint32_t  elementCount,
uint32_t  elementSize,
RHI::Format  format,
RHI::BufferBindFlags  overrideBindFlags 
)
static

Utility function to create a resource view into the shared buffer memory area. This resource view can have a different type than the shared buffer data. Since the shared buffer class is used as a buffer allocation for many sub-buffers, this method should be used after creating a new allocation within the shared buffer.


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