Navigation
API > API/Runtime > API/Runtime/Engine
| Name | FRawStaticIndexBuffer |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/RawIndexBuffer.h |
| Include Path | #include "RawIndexBuffer.h" |
Syntax
class FRawStaticIndexBuffer : public FIndexBuffer
Inheritance Hierarchy
- FRenderResource → FIndexBuffer → FRawStaticIndexBuffer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRawStaticIndexBuffer
(
bool InNeedsCPUAccess |
Initialization constructor. | RawIndexBuffer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FRawStaticIndexBuffer() |
RawIndexBuffer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| b32Bit | bool | 32bit or 16bit? | RawIndexBuffer.h | |
| CachedNumIndices | int32 | If >= 0, represents the number of indices in this IB. | RawIndexBuffer.h | |
| IndexStorage | TResourceArray< uint8, INDEXBUFFER_ALIGNMENT > | Storage for indices. | RawIndexBuffer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const uint16 * AccessStream16() |
Get the direct read access to index data Only valid if NeedsCPUAccess = true and indices are 16 bit | RawIndexBuffer.h | |
const uint32 * AccessStream32() |
Get the direct read access to index data Only valid if NeedsCPUAccess = true and indices are 32 bit | RawIndexBuffer.h | |
void AppendIndices
(
const uint32* IndicesToAppend, |
Append indices to the end of the buffer | RawIndexBuffer.h | |
void ClearMetaData() |
RawIndexBuffer.h | ||
FBufferRHIRef CreateRHIBuffer
(
FRHICommandListBase& RHICmdList |
Create an RHI index buffer with CPU data. | RawIndexBuffer.h | |
void Discard() |
Discard discards the serialized data when it is not needed | RawIndexBuffer.h | |
void ExpandTo32Bit() |
Expands the 16bit index buffer to 32bit | RawIndexBuffer.h | |
SIZE_T GetAllocatedSize() |
Computes the amount of memory allocated to store the indices. | RawIndexBuffer.h | |
bool GetAllowCPUAccess() |
RawIndexBuffer.h | ||
| Retrieves an array view in to the index buffer. | RawIndexBuffer.h | ||
| Retrieve a copy of the indices in this buffer. | RawIndexBuffer.h | ||
uint32 GetIndex
(
const uint32 At |
RawIndexBuffer.h | ||
int32 GetIndexDataSize() |
== GetNumIndices() * (b32Bit ? 4 : 2) | RawIndexBuffer.h | |
int32 GetNumIndices() |
Computes the number of indices stored in this buffer. | RawIndexBuffer.h | |
void InitRHIForStreaming
(
FRHIBuffer* IntermediateBuffer, |
Take over ownership of IntermediateBuffer | RawIndexBuffer.h | |
void InsertIndices
(
const uint32 At, |
Insert indices at the given position in the buffer | RawIndexBuffer.h | |
bool Is32Bit() |
RawIndexBuffer.h | ||
void ReleaseRHIForStreaming
(
FRHIResourceReplaceBatcher& Batcher |
Release any GPU resource owned by the RHI object | RawIndexBuffer.h | |
void RemoveIndicesAt
(
const uint32 At, |
Removes indices from the buffer | RawIndexBuffer.h | |
void Serialize
(
FArchive& Ar, |
Serialization. | RawIndexBuffer.h | |
void SerializeMetaData
(
FArchive& Ar |
Serialize only meta data (e.g. number of indices) but not the actual index data | RawIndexBuffer.h | |
void SetIndex
(
const uint32 At, |
Sets a single index value. Consider using SetIndices() instead if you're setting a lot of indices. | RawIndexBuffer.h | |
void SetIndices
(
const TArray< uint32 >& InIndices, |
Set the indices stored within this buffer. | RawIndexBuffer.h | |
bool TrySetAllowCPUAccess
(
bool bAllowCPUAccess |
Copy everything, keeping reference to the same RHI resources. | RawIndexBuffer.h |
Overridden from FRenderResource
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitRHI
(
FRHICommandListBase& RHICmdList |
RawIndexBuffer.h |