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

Buffer for holding vertex attribute data to be trasferred to the GPU for mesh rendering. More...

#include <WhiteBoxBuffer.h>

Public Member Functions

 Buffer (const AZStd::vector< VertexStreamDataType > &data)
 Constructs the buffer from the specified data in vertex stream format.
 
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.
 
bool IsValid () const
 Returns true of the buffer is valid, otherwise false.
 
bool UpdateData (const AZStd::vector< VertexStreamDataType > &data)
 Update the buffer contents with the new data.
 

Detailed Description

template<typename VertexStreamDataType>
class WhiteBox::Buffer< VertexStreamDataType >

Buffer for holding vertex attribute data to be trasferred to the GPU for mesh rendering.


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