#include <HairCommon.h>
Public Member Functions | |
TYPE * | operator-> () |
TYPE * | get () |
Render::SrgBufferDescriptor & | GetBufferDescriptor () |
bool | InitForUniqueSrg (Data::Instance< RPI::ShaderResourceGroup > srg, Render::SrgBufferDescriptor &srgDesc) |
bool | UpdateGPUData () |
bool | UpdateGPUData (Data::Instance< RPI::ShaderResourceGroup > srg, Render::SrgBufferDescriptor &srgDesc) |
The following class matches between a constant buffer structure in CPU and its counter part on the GPU. It is the equivalent Atom class for TressFXUniformBuffer.
|
inline |
Use this method only if the buffer will be attached to a single Srg. If this is not the case use InitForUndefinedSrg
|
inline |
Updates and binds the data to the Srg and copies it to the GPU side. Assumes that the buffer is uniquely attached to the saved srg.
|
inline |
Updates Binds the data to the Srg and copies it to the GPU side. Assumes that the buffer can be associated with various srgs.