Navigation
API > API/Runtime > API/Runtime/Engine
An attachment counter is a thread-safe counter that is only ever incremented on the game thread, and decremented on the rendering thread.
It also supports transactions, and will undo any increments on the game thread if a transaction aborts.
| Name | FAttachmentCounter |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/PrimitiveSceneInfoData.h |
| Include Path | #include "PrimitiveSceneInfoData.h" |
Syntax
struct FAttachmentCounter
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| PrimitiveSceneInfoData.h | |||
| PrimitiveSceneInfoData.h | |||
FAttachmentCounter
(
const FAttachmentCounter& |
PrimitiveSceneInfoData.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Payload | std::atomic< int32 > | PrimitiveSceneInfoData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Decrement() |
PrimitiveSceneInfoData.h | ||
int32 GetValue() |
PrimitiveSceneInfoData.h | ||
void Increment() |
PrimitiveSceneInfoData.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAttachmentCounter & operator=
(
const FAttachmentCounter& |
PrimitiveSceneInfoData.h | ||
| PrimitiveSceneInfoData.h |