Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Helpers
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGAsyncState.h |
| Include | #include "Helpers/PCGAsyncState.h" |
Syntax
struct FPCGAsyncState
Remarks
Helper class to gather information about asynchronus execution. Will be held in the PCGContext.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | AsyncCurrentReadIndex | ||
| int32 | AsyncCurrentWriteIndex | For async process, keep track of where the write processing is in output data. | |
| bool | bIsOutOfTickBudgetSet | True if out of tick buddget was set | |
| bool | bIsRunningAsyncCall | True if currently inside a PCGAsync scope - will prevent further async processing. | |
| bool | bIsRunningOnMainThread | For multithreading, track if the current element is run on the main thread. | |
| bool | bIsRunningOutOfTick | True if we can run out of tick | |
| bool | bStarted | Keep information if the async has started or not. | |
| TMap< int32, int32 > | ChunkToNumElementsWrittenMap | Map between the processed chunks but not yet processed and the number of elements written for that chunk. | |
| int32 | CurrentChunkToCollapse | Keep track of the current chunk we need to collapse. Important to collapse in order. | |
| PRAGMA_ENABLE_DEPRECATION_WARNINGS double | EndTime | For timeslicing, it will be set by the graph executor to know when we should stop. | |
| int32 | NumAvailableTasks | How many tasks are available to run async. | |
| TArray< TTuple< int32, int32 > > | TasksChunksStartEnd | List of the current chunk and last chunk a given task have to process. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | Deprecating a property requires to have deprecation warning disable for the default copy ctor... | ||
FPCGAsyncState
(
const FPCGAsyncState& |
|||
FPCGAsyncState
(
FPCGAsyncState&& |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Reset () |
To be called at the end of an async processing. | |
| bool | ShouldStop () |
Returns true if we reached end time. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FPCGAsyncState & | operator=
(
const FPCGAsyncState& |
||
| FPCGAsyncState & | operator=
(
FPCGAsyncState&& |