Navigation
API > API/Plugins > API/Plugins/PCG
Current context/state used during compilation of GPU graphs.
| Name | FPCGGPUCompilationContext |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Graph/PCGGPUGraphCompilationContext.h |
| Include Path | #include "Graph/PCGGPUGraphCompilationContext.h" |
Syntax
struct FPCGGPUCompilationContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGGPUCompilationContext
(
FPCGGraphCompiler& InGraphCompiler |
Graph/PCGGPUGraphCompilationContext.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FPCGGPUCompilationContext() |
Graph/PCGGPUGraphCompilationContext.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AsyncObjects | TSet< TObjectPtr< UObject > > | List of objects created during compilation, we need to track them so we can remove their Async flags when compilation is done so that they can be considered as existing on the main thread (and get properly GCed). | Graph/PCGGPUGraphCompilationContext.h | |
| CompiledComputeGraphs | TArray< TObjectPtr< UPCGComputeGraph > > | Graph/PCGGPUGraphCompilationContext.h | ||
| GraphCompiler | FPCGGraphCompiler & | Graph/PCGGPUGraphCompilationContext.h | ||
| StaticAttributeTable | const FPCGKernelAttributeTable * | Attribute table of the currently compiling compute graph. | Graph/PCGGPUGraphCompilationContext.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddCompiledComputeGraph
(
TObjectPtr< UPCGComputeGraph > NewComputeGraph |
Returns the index of the newly added compute graph. | Graph/PCGGPUGraphCompilationContext.h | |
TArray< TObjectPtr< UPCGComputeGraph > > & GetCompiledComputeGraphs() |
Graph/PCGGPUGraphCompilationContext.h | ||
FPCGGraphCompiler & GetGraphCompiler() |
Graph/PCGGPUGraphCompilationContext.h | ||
const FPCGKernelAttributeTable * GetStaticAttributeTable() |
Graph/PCGGPUGraphCompilationContext.h | ||
T * NewObject_AnyThread
(
Args&&... InArgs |
Thread safe NewObject. If object created off game thread, object added to AsyncObjects. | Graph/PCGGPUGraphCompilationContext.h | |
void SetStaticAttributeTable
(
const FPCGKernelAttributeTable* InStaticAttributeTable |
Graph/PCGGPUGraphCompilationContext.h |