Navigation
API > API/Runtime > API/Runtime/Engine
A vertex buffer of positions.
| Name | FPositionVertexBuffer |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Rendering/PositionVertexBuffer.h |
| Include Path | #include "Rendering/PositionVertexBuffer.h" |
Syntax
class FPositionVertexBuffer : public FVertexBuffer
Inheritance Hierarchy
- FRenderResource → FVertexBuffer → FPositionVertexBuffer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPositionVertexBuffer() |
Default constructor. | Rendering/PositionVertexBuffer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FPositionVertexBuffer() |
Destructor. | Rendering/PositionVertexBuffer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bNeedsCPUAccess | bool | Rendering/PositionVertexBuffer.h | ||
| Data | uint8 * | The cached vertex data pointer. | Rendering/PositionVertexBuffer.h | |
| NumVertices | uint32 | The cached number of vertices. | Rendering/PositionVertexBuffer.h | |
| PositionComponentSRV | FShaderResourceViewRHIRef | Rendering/PositionVertexBuffer.h | ||
| Stride | uint32 | The cached vertex stride. | Rendering/PositionVertexBuffer.h | |
| VertexData | FPositionVertexData * | The vertex data storage type | Rendering/PositionVertexBuffer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AppendVertices
(
const FStaticMeshBuildVertex* Vertices, |
Appends the specified vertices to the end of the buffer | Rendering/PositionVertexBuffer.h | |
void BindPositionVertexBuffer
(
const FVertexFactory* VertexFactory, |
Rendering/PositionVertexBuffer.h | ||
void CleanUp() |
Delete existing resources | Rendering/PositionVertexBuffer.h | |
void ClearMetaData() |
Rendering/PositionVertexBuffer.h | ||
FBufferRHIRef CreateRHIBuffer
(
FRHICommandListBase& RHICmdList |
Create an RHI vertex buffer with CPU data. | Rendering/PositionVertexBuffer.h | |
SIZE_T GetAllocatedSize() |
Rendering/PositionVertexBuffer.h | ||
bool GetAllowCPUAccess() |
Rendering/PositionVertexBuffer.h | ||
uint32 GetNumVertices() |
Rendering/PositionVertexBuffer.h | ||
FRHIShaderResourceView * GetSRV() |
Rendering/PositionVertexBuffer.h | ||
uint32 GetStride() |
Other accessors. | Rendering/PositionVertexBuffer.h | |
const void * GetVertexData () |
Rendering/PositionVertexBuffer.h | ||
void * GetVertexData () |
Rendering/PositionVertexBuffer.h | ||
| Rendering/PositionVertexBuffer.h | |||
void Init
(
const FPositionVertexBuffer& InVertexBuffer, |
Initializes this vertex buffer with the contents of the given vertex buffer. | Rendering/PositionVertexBuffer.h | |
void Init
(
const FConstMeshBuildVertexView& InVertices, |
Rendering/PositionVertexBuffer.h | ||
void Init
(
const TArray< FStaticMeshBuildVertex >& InVertices, |
Initializes the buffer with the given vertices, used to convert legacy layouts. | Rendering/PositionVertexBuffer.h | |
void Init
(
uint32 NumVertices, |
Rendering/PositionVertexBuffer.h | ||
void InitRHIForStreaming
(
FRHIBuffer* IntermediateBuffer, |
Similar to Init/ReleaseRHI but only update existing SRV so references to the SRV stays valid | Rendering/PositionVertexBuffer.h | |
void ReleaseRHIForStreaming
(
FRHIResourceReplaceBatcher& Batcher |
Rendering/PositionVertexBuffer.h | ||
void Serialize
(
FArchive& Ar, |
Serializer | Rendering/PositionVertexBuffer.h | |
void SerializeMetaData
(
FArchive& Ar |
Rendering/PositionVertexBuffer.h | ||
void SetMetaData
(
uint32 InStride, |
Rendering/PositionVertexBuffer.h | ||
FVector3f & VertexPosition
(
uint32 VertexIndex |
Vertex data accessors. | Rendering/PositionVertexBuffer.h | |
const FVector3f & VertexPosition
(
uint32 VertexIndex |
Rendering/PositionVertexBuffer.h |
Overridden from FRenderResource
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetFriendlyName() |
Rendering/PositionVertexBuffer.h | ||
virtual void InitRHI
(
FRHICommandListBase& RHICmdList |
Rendering/PositionVertexBuffer.h | ||
virtual void ReleaseRHI() |
Rendering/PositionVertexBuffer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void operator=
(
const FPositionVertexBuffer& Other |
Specialized assignment operator, only used when importing LOD's. | Rendering/PositionVertexBuffer.h |