Navigation
API > API/Runtime > API/Runtime/Engine
| Name | FInstanceIdIndexMap |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/InstanceDataSceneProxy.h |
| Include Path | #include "InstanceDataSceneProxy.h" |
Syntax
class FInstanceIdIndexMap
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FInstanceIdIndexMap() |
InstanceDataSceneProxy.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CreateExplicitIdentityMapping () |
Convert an implicit identity mapping to an explicit one, by filling in the mapping arrays. | InstanceDataSceneProxy.h | |
int32 GetMaxInstanceId() |
Returms the upper bound on the instance ID represented as an integer, may be larger than the number of instances but is never larger than the max that has ever been allocated. | InstanceDataSceneProxy.h | |
int32 GetMaxInstanceIndex() |
Returns the maximum instance index (or rather the maximum valid number plus one), AKA the number of instances represented. | InstanceDataSceneProxy.h | |
int32 IdToIndex
(
FPrimitiveInstanceId InstanceId |
Translate from FPrimitiveInstanceId to Index | InstanceDataSceneProxy.h | |
FPrimitiveInstanceId IndexToId
(
int32 InstanceIndex |
Translate from Index to FPrimitiveInstanceId | InstanceDataSceneProxy.h | |
bool IsIdentity () |
Returns true if the mapping is an identity mapping. | InstanceDataSceneProxy.h | |
bool IsValidId
(
FPrimitiveInstanceId InstanceId |
Returns true if InstanceId is in the mapped range AND . | InstanceDataSceneProxy.h | |
void RebuildFromIndexToIdMap
(
TArray< FPrimitiveInstanceId >&& InIndexToIdMap, |
InstanceDataSceneProxy.h | ||
void Reset
(
int32 InNumInstances |
Reset the mapping to an identity map of size InNumInstances. | InstanceDataSceneProxy.h | |
void ResizeExplicit
(
int32 InNumInstances, |
Make sure the mapping is explicit and add enough space to accommodate the InNumInstances & MaxInstanceId. | InstanceDataSceneProxy.h | |
void Serialize
(
FArchive& Ar |
InstanceDataSceneProxy.h | ||
void SetInvalid
(
FPrimitiveInstanceId InstanceId |
Set the index mapping for the given InstanceId to INDEX_NONE. | InstanceDataSceneProxy.h | |
void Update
(
FPrimitiveInstanceId InstanceId, |
Update the mapping from ID to index (and vice versa). | InstanceDataSceneProxy.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void RebuildFromIndexToIdMap
(
int32 MaxInstanceId |
InstanceDataSceneProxy.h |