Public Member Functions | Protected Attributes | List of all members
FRuntimeMeshVertexBuffer Class Referenceabstract

#include <RuntimeMeshRendering.h>

Inheritance diagram for FRuntimeMeshVertexBuffer:
Inheritance graph
[legend]

Public Member Functions

virtual void Bind (FLocalVertexFactory::FDataType &DataType)=0
 
 FRuntimeMeshVertexBuffer (EUpdateFrequency InUpdateFrequency, int32 InVertexSize)
 
int32 GetBufferSize () const
 
virtual void InitRHI () override
 
int32 Num ()
 
void Reset (int32 InNumVertices)
 
void SetData (const TArray< uint8 > &Data)
 
void SetNum (int32 NewVertexCount)
 
 ~FRuntimeMeshVertexBuffer ()
 

Protected Attributes

int32 NumVertices
 
FShaderResourceViewRHIRef ShaderResourceView
 
const EBufferUsageFlags UsageFlags
 
const int32 VertexSize
 

Detailed Description

Single vertex buffer to hold one vertex stream within a section

Definition at line 15 of file RuntimeMeshRendering.h.

Constructor & Destructor Documentation

FRuntimeMeshVertexBuffer::FRuntimeMeshVertexBuffer ( EUpdateFrequency  InUpdateFrequency,
int32  InVertexSize 
)

Definition at line 8 of file RuntimeMeshRendering.cpp.

FRuntimeMeshVertexBuffer::~FRuntimeMeshVertexBuffer ( )
inline

Definition at line 34 of file RuntimeMeshRendering.h.

Member Function Documentation

virtual void FRuntimeMeshVertexBuffer::Bind ( FLocalVertexFactory::FDataType &  DataType)
pure virtual
int32 FRuntimeMeshVertexBuffer::GetBufferSize ( ) const
inline

Gets the full allocated size of the buffer (Equal to VertexSize * NumVertices)

Definition at line 44 of file RuntimeMeshRendering.h.

void FRuntimeMeshVertexBuffer::InitRHI ( )
overridevirtual

Definition at line 23 of file RuntimeMeshRendering.cpp.

int32 FRuntimeMeshVertexBuffer::Num ( )
inline

Get the size of the vertex buffer

Definition at line 41 of file RuntimeMeshRendering.h.

void FRuntimeMeshVertexBuffer::Reset ( int32  InNumVertices)

Definition at line 16 of file RuntimeMeshRendering.cpp.

void FRuntimeMeshVertexBuffer::SetData ( const TArray< uint8 > &  Data)

Definition at line 56 of file RuntimeMeshRendering.cpp.

void FRuntimeMeshVertexBuffer::SetNum ( int32  NewVertexCount)

Definition at line 42 of file RuntimeMeshRendering.cpp.

Member Data Documentation

int32 FRuntimeMeshVertexBuffer::NumVertices
protected

The number of vertices this buffer is currently allocated to hold

Definition at line 25 of file RuntimeMeshRendering.h.

FShaderResourceViewRHIRef FRuntimeMeshVertexBuffer::ShaderResourceView
protected

Shader Resource View for this buffer

Definition at line 28 of file RuntimeMeshRendering.h.

const EBufferUsageFlags FRuntimeMeshVertexBuffer::UsageFlags
protected

The buffer configuration to use

Definition at line 19 of file RuntimeMeshRendering.h.

const int32 FRuntimeMeshVertexBuffer::VertexSize
protected

Size of a single vertex

Definition at line 22 of file RuntimeMeshRendering.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:32