FMultiSizeIndexContainer

Skeletal mesh index buffers are 16 bit by default and 32 bit when called for.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Rendering/MultiSizeIndexContainer.h"

Syntax

class FMultiSizeIndexContainer

Remarks

Skeletal mesh index buffers are 16 bit by default and 32 bit when called for. This class adds a level of abstraction on top of the index buffers so that we can treat them all as 32 bit.

Constructors

Destructors

Name Description

Public function

~FMultiSizeIndexContainer()

Functions

Name Description

Public function

void

 

CopyIndexBuffer

(
    const TArray< uint32 >& NewArray
)

Populates the index buffer with a new set of indices

Public function

void

 

CreateIndexBuffer

(
    uint8 DataTypeSize
)

Creates a new index buffer

Public function

FIndexBuffer...

 

CreateRHIBuffer_Async()

Public function

FIndexBuffer...

 

CreateRHIBuffer_RenderThread()

Public function Const

uint8

 

GetDataTypeSize()

Accessors

Public function

FRawStaticIn...

 

GetIndexBuffer()

Public function Const

const FRawSt...

 

GetIndexBuffer()

Public function Const

void

 

GetIndexBuffer

(
    TArray< uint32 >& OutArray
)

Returns a 32 bit version of the index buffer

Public function Const

void

 

GetIndexBufferData

(
    FMultiSizeIndexContainerData& OutD...
)

Retrieves index buffer related data

Public function

void

 

InitResources()

Initialize the index buffer's render resources.

Public function

void

 

InitRHIForStreaming

(
    FRHIIndexBuffer* IntermediateB...,
    TRHIResourceUpdateBatcher< MaxNumUp...
)

Public function Const

bool

 

IsIndexBufferValid()

Public function

void

 

RebuildIndexBuffer

(
    uint8 InDataTypeSize,
    const TArray< uint32 >& NewArray
)

Repopulates the index buffer

Public function

void

 

ReleaseResources()

Releases the index buffer's render resources.

Public function

void

 

ReleaseRHIForStreaming

(
    TRHIResourceUpdateBatcher< MaxNumUp...
)

Public function

void

 

Serialize

(
    FArchive& Ar,
    bool bNeedsCPUAccess
)

Serialization.

Public function

void

 

SerializeMetaData

(
    FArchive& Ar,
    bool bNeedsCPUAccess
)

Operators

Name Description

Public function

FMultiSizeIn...

 

operator=

(
    const FMultiSizeIndexContainer& Bu...
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss