#include <RuntimeMeshRendering.h>
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 |
Single vertex buffer to hold one vertex stream within a section
Definition at line 15 of file RuntimeMeshRendering.h.
FRuntimeMeshVertexBuffer::FRuntimeMeshVertexBuffer | ( | EUpdateFrequency | InUpdateFrequency, |
int32 | InVertexSize | ||
) |
Definition at line 8 of file RuntimeMeshRendering.cpp.
|
inline |
Definition at line 34 of file RuntimeMeshRendering.h.
|
pure virtual |
|
inline |
Gets the full allocated size of the buffer (Equal to VertexSize * NumVertices)
Definition at line 44 of file RuntimeMeshRendering.h.
|
overridevirtual |
Definition at line 23 of file RuntimeMeshRendering.cpp.
|
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.
|
protected |
The number of vertices this buffer is currently allocated to hold
Definition at line 25 of file RuntimeMeshRendering.h.
|
protected |
Shader Resource View for this buffer
Definition at line 28 of file RuntimeMeshRendering.h.
|
protected |
The buffer configuration to use
Definition at line 19 of file RuntimeMeshRendering.h.
|
protected |
Size of a single vertex
Definition at line 22 of file RuntimeMeshRendering.h.