FPositionVertexBuffer

A vertex buffer of positions.

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

FVertexBuffe...

 

CreateRHIBuffer_Async()

Public function

FVertexBuffe...

 

CreateRHIBuffer_RenderThread()

Create an RHI vertex buffer with CPU data.

Public function Const

uint32

 

GetNumVertices()

Public function Const

FRHIShaderRe...

 

GetSRV()

Public function Const

uint32

 

GetStride()

Other accessors.

Public function

void *

 

GetVertexData()

Public function

void

 

Init

(
    uint32 NumVertices,
    bool bInNeedsCPUAccess
)

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

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

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

Public function

void

 

Init

(
    const TArray< FVector >& InPositio...,
    bool bInNeedsCPUAccess
)

Public function

void

 

InitRHIForStreaming

(
    FRHIVertexBuffer* Intermediate...,
    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

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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback