Navigation
API > API/Runtime > API/Runtime/MassEntity
Tracks which chunks are actively being processed with a refcount
| Name | FActiveChunkSet |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassProcessingQueueTypes.h |
| Include Path | #include "MassProcessingQueueTypes.h" |
Syntax
struct FActiveChunkSet
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FActiveChunkSet
(
int32 InMaxSlots |
MassProcessingQueueTypes.h |
Structs
| Name | Remarks |
|---|---|
| FChunkSlot |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Capacity | int32 | MassProcessingQueueTypes.h | |
| EmptyValue | uint64 | MassProcessingQueueTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MaxSlots | const int32 | MassProcessingQueueTypes.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| RefCounts | std::atomic< int32 > | MassProcessingQueueTypes.h | ||
| Slots | std::atomic< uint64 > | Alignas(64) to avoid false sharing | MassProcessingQueueTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddGetRefCount
(
uint64 ID |
Adds the ID to the set if not present Increments the refcount for the ID Returns the new refcount | MassProcessingQueueTypes.h | |
bool Contains
(
uint64 ID |
Checks if the ID exists in the set. | MassProcessingQueueTypes.h | |
void Remove
(
uint64 ID |
Decrement the refcount for ID and remove it if the count is 0 | MassProcessingQueueTypes.h | |
bool TryAddExclusive
(
uint64 ID |
Adds an ID to the set. Returns true if added, false if it was already present. | MassProcessingQueueTypes.h |