Open 3D Engine AtomTressFX 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::Render::Hair::HairUniformBuffer< TYPE > Class Template Reference

#include <HairCommon.h>

Public Member Functions

TYPE * operator-> ()
 
TYPE * get ()
 
Render::SrgBufferDescriptorGetBufferDescriptor ()
 
bool InitForUniqueSrg (Data::Instance< RPI::ShaderResourceGroup > srg, Render::SrgBufferDescriptor &srgDesc)
 
bool UpdateGPUData ()
 
bool UpdateGPUData (Data::Instance< RPI::ShaderResourceGroup > srg, Render::SrgBufferDescriptor &srgDesc)
 

Detailed Description

template<class TYPE>
class AZ::Render::Hair::HairUniformBuffer< TYPE >

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.

Member Function Documentation

◆ InitForUniqueSrg()

template<class TYPE >
bool AZ::Render::Hair::HairUniformBuffer< TYPE >::InitForUniqueSrg ( Data::Instance< RPI::ShaderResourceGroup >  srg,
Render::SrgBufferDescriptor srgDesc 
)
inline

Use this method only if the buffer will be attached to a single Srg. If this is not the case use InitForUndefinedSrg

◆ UpdateGPUData() [1/2]

template<class TYPE >
bool AZ::Render::Hair::HairUniformBuffer< TYPE >::UpdateGPUData ( )
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.

◆ UpdateGPUData() [2/2]

template<class TYPE >
bool AZ::Render::Hair::HairUniformBuffer< TYPE >::UpdateGPUData ( Data::Instance< RPI::ShaderResourceGroup >  srg,
Render::SrgBufferDescriptor srgDesc 
)
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.


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