Open 3D Engine WhiteBox 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.
WhiteBox::AttributeBuffer< AttributeTypeT > Class Template Reference

Buffer to hold white box mesh vertex attribute data. More...

#include <WhiteBoxAttributeBuffer.h>

Public Types

using Trait = AttributeTrait< AttributeTypeT >
 

Public Member Functions

template<typename VertexStreamDataType >
 AttributeBuffer (const AZStd::vector< VertexStreamDataType > &data)
 Construct a new Attribute Buffer object from the specified data.
 
const AZ::Data::Asset< AZ::RPI::BufferAsset > & GetBuffer () const
 Retrieves the buffer asset.
 
const AZ::RHI::BufferViewDescriptor & GetBufferViewDescriptor () const
 Retrieves the buffer view descriptor.
 
const AZ::RPI::BufferAssetView & GetBufferAssetView () const
 Retrieves the buffer asset view.
 
const AZ::RHI::ShaderSemantic & GetShaderSemantic () const
 Retrieves the attribute's shader semantic.
 
void AddLodStreamBuffer (AZ::RPI::ModelLodAssetCreator &modelLodCreator) const
 Adds this attribute buffer to the Lod.
 
void AddMeshStreamBuffer (AZ::RPI::ModelLodAssetCreator &modelLodCreator) const
 Adds this attribute buffer to the mesh.
 
bool IsValid () const
 Returns true of the attribute buffer is valid, otherwise false.
 
template<typename VertexStreamDataType >
bool UpdateData (const AZStd::vector< VertexStreamDataType > &data)
 Update the attribute buffer contents with the new data.
 

Detailed Description

template<AttributeType AttributeTypeT>
class WhiteBox::AttributeBuffer< AttributeTypeT >

Buffer to hold white box mesh vertex attribute data.


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