FPositionVertexBuffer

Inheritance Hierarchy

FRenderResource

FVertexBuffer

FPositionVertexBuffer

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 Const

uint32

 

GetNumVertices()

Public function Const

uint32

 

GetStride()

Other accessors.

Public function

void *

 

GetVertexData()

Public function

void

 

Init

(
    const TArray < FVector >& InPositio...,
    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

 

Serialize

(
    FArchive & Ar,
    bool bInNeedsCPUAccess
)

Serializer

Public function

FVector &

 

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.

References

Module

Engine

Header

Runtime/Engine/Public/Rendering/PositionVertexBuffer.h