FPositionVertexBuffer

A vertex buffer of positions.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FRenderResource

FVertexBuffer

FPositionVertexBuffer

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Rendering/PositionVertexBuffer.h

Include

#include "Rendering/PositionVertexBuffer.h"

Syntax

class FPositionVertexBuffer : public FVertexBuffer

Remarks

A vertex buffer of positions.

Constructors

Name Description

Public function

FPositionVertexBuffer()

Default constructor.

Destructors

Name Description

Public function

~FPositionVertexBuffer()

Destructor.

Functions

Name Description

Public function

void

 

AppendVertices

(
    const FStaticMeshBuildVertex* ...,
    const uint32 NumVerticesToAppend
)

Appends the specified vertices to the end of the buffer

Public function Const

void

 

BindPositionVertexBuffer

(
    const FVertexFactory* VertexFa...,
    FStaticMeshDataType& Data
)

Public function

void

 

CleanUp()

Delete existing resources

Public function

void

 

ClearMetaData()

Public function

void

 

CopyRHIForStreaming

(
    const FPositionVertexBuffer& Other,
    bool InAllowCPUAccess
)

Copy everything, keeping reference to the same RHI resources.

Public function

FBufferRHIRe...

 

CreateRHIBuffer_Async()

Public function

FBufferRHIRe...

 

CreateRHIBuffer_RenderThread()

Create an RHI vertex buffer with CPU data.

Public function Const

bool

 

GetAllowCPUAccess()

Public function Const

uint32

 

GetNumVertices()

Public function Const

FRHIShaderRe...

 

GetSRV()

Public function Const

uint32

 

GetStride()

Other accessors.

Public function Const

const void &...

 

GetVertexData()

Public function

void *

 

GetVertexData()

Public function

void

 

Init

(
    const TArray< FVector3f >& InPosit...,
    bool bInNeedsCPUAccess
)

Public function

void

 

Init

(
    const FPositionVertexBuffer& InVer...,
    bool bInNeedsCPUAccess
)

Initializes this vertex buffer with the contents of the given vertex buffer.

Public function

void

 

Init

(
    const TArray< FStaticMeshBuildVerte...,
    bool bInNeedsCPUAccess
)

Initializes the buffer with the given vertices, used to convert legacy layouts.

Public function

void

 

Init

(
    uint32 NumVertices,
    bool bInNeedsCPUAccess
)

Public function

void

 

InitRHIForStreaming

(
    FRHIBuffer* IntermediateBuffer,
    TRHIResourceUpdateBatcher< MaxNumUp...
)

Similar to Init/ReleaseRHI but only update existing SRV so references to the SRV stays valid

Public function

void

 

ReleaseRHIForStreaming

(
    TRHIResourceUpdateBatcher< MaxNumUp...
)

Public function

void

 

Serialize

(
    FArchive& Ar,
    bool bInNeedsCPUAccess
)

Serializer

Public function

void

 

SerializeMetaData

(
    FArchive& Ar
)

Public function

FVector3f &

 

VertexPosition

(
    uint32 VertexIndex
)

Vertex data accessors.

Public function Const

const FVecto...

 

VertexPosition

(
    uint32 VertexIndex
)

Overridden from FRenderResource

Name Description

Public function Virtual Const

FString

 

GetFriendlyName()

Public function Virtual

void

 

InitRHI()

Initializes the RHI resources used by this resource.

Public function Virtual

void

 

ReleaseRHI()

Releases the RHI resources used by this resource.

Operators

Name Description

Public function

void

 

operator=

(
    const FPositionVertexBuffer& Other
)

Specialized assignment operator, only used when importing LOD's.