Navigation
API > API/Runtime > API/Runtime/Engine
Virtual interface for the FRawStaticIndexBuffer16or32 class
| Name | FRawStaticIndexBuffer16or32Interface |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/RawIndexBuffer.h |
| Include Path | #include "RawIndexBuffer.h" |
Syntax
class FRawStaticIndexBuffer16or32Interface : public FIndexBuffer
Inheritance Hierarchy
- FRenderResource → FIndexBuffer → FRawStaticIndexBuffer16or32Interface
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddItem
(
uint32 Val |
RawIndexBuffer.h | ||
void Empty
(
int32 Slack |
RawIndexBuffer.h | ||
uint32 Get
(
uint32 Idx |
RawIndexBuffer.h | ||
bool GetNeedsCPUAccess() |
The following methods are basically just accessors that allow us to hide the implementation of FRawStaticIndexBuffer16or32 by making the index array a private member | RawIndexBuffer.h | |
FShaderResourceViewRHIRef GetOrCreateSRV
(
FRHICommandListBase& RHICmdList |
Allows for creating SRV on demand Note: consider cache the SRV locally if multiple compute tasks all need access to one in a single frame | RawIndexBuffer.h | |
void * GetPointerTo
(
uint32 Idx |
RawIndexBuffer.h | ||
int32 GetResourceDataSize() |
RawIndexBuffer.h | ||
FRHIShaderResourceView * GetSRV() |
RawIndexBuffer.h | ||
void Insert
(
int32 Idx, |
RawIndexBuffer.h | ||
int32 Num() |
Number of indices (e.g. 4 triangles would result in 12 elements) | RawIndexBuffer.h | |
void Remove
(
int32 Idx, |
RawIndexBuffer.h | ||
void Serialize
(
FArchive& Ar |
RawIndexBuffer.h | ||
void SerializeMetaData
(
FArchive& Ar |
RawIndexBuffer.h | ||
void SetMetaData
(
int32 InCachedNumIndices |
RawIndexBuffer.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void InitRHIForStreaming
(
FRHIBuffer* IntermediateBuffer, |
Similar to Init/ReleaseRHI but only update existing SRV so references to the SRV stays valid | RawIndexBuffer.h | |
bool IsShaderResource
(
bool bAllowCPUAccess |
RawIndexBuffer.h | ||
bool IsSRVCreatedByDefault
(
bool bAllowCPUAccess |
RawIndexBuffer.h | ||
bool IsSRVNeeded
(
bool bAllowCPUAccess |
RawIndexBuffer.h | ||
void ReleaseRHIForStreaming
(
FRHIResourceReplaceBatcher& Batcher |
RawIndexBuffer.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FBufferRHIRef CreateRHIIndexBufferInternal
(
FRHICommandListBase& RHICmdList, |
RawIndexBuffer.h |