FRawStaticIndexBuffer16or32

Windows
MacOS
Linux

Inheritance Hierarchy

Syntax

template<typename INDEX_TYPE>
class FRawStaticIndexBuffer16or32 : public FRawStaticIndexBuffer16or32Interface

Constructors

Name Description

Public function

FRawStaticIndexBuffer16or32

(
    bool InNeedsCPUAccess
)

Constructor

Functions

Name Description

Public function Virtual

void

 

AssignNewBuffer

(
    const TArray< INDEX_TYPE >& Buffer
)

Public function

void

 

CacheOptimize()

Orders a triangle list for better vertex cache coherency.

Overridden from FRawStaticIndexBuffer16or32Interface

Name Description

Public function Virtual

int32

 

AddItem

(
    uint32 Val
)

Public function Virtual

void

 

Empty

(
    int32 Slack
)

Public function Virtual Const

uint32

 

Get

(
    uint32 Idx
)

Public function Virtual Const

bool

 

GetNeedsCPUAccess()

The following methods are basically just accessors that allow us to hide the implementation by making the index array a private member

Public function Virtual

void *

 

GetPointerTo

(
    uint32 Idx
)

Public function Virtual Const

int32

 

GetResourceDataSize()

Public function Virtual

void

 

Insert

(
    int32 Idx,
    int32 Num
)

Public function Virtual Const

int32

 

Num()

Number of indices (e.g. 4 triangles would result in 12 elements)

Public function Virtual

void

 

Remove

(
    int32 Idx,
    int32 Num
)

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Serializer for this class

Overridden from FRenderResource

Name Description

Public function Virtual

void

 

InitRHI()

Create the index buffer RHI resource and initialize its data

Public function Virtual

void

 

ReleaseRHI()

Releases the RHI resources used by this resource.

References

Module

Engine

Header

Runtime/Engine/Public/RawIndexBuffer.h

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