Navigation
API > API/Plugins > API/Plugins/PCG
Helper struct to cache parameters for compute kernels.
| Name | FPCGKernelParamsCache |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Compute/PCGKernelParamsCache.h |
| Include Path | #include "Compute/PCGKernelParamsCache.h" |
Syntax
struct FPCGKernelParamsCache
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| KernelParams | TMap< int32, FPCGKernelParams > | Maps kernels to their cached kernel parameter values. | Compute/PCGKernelParamsCache.h | |
| OverridableParamDataIndices | TMap< int32, TArray< TPair< FPCGKernelOverridableParam, int32 > > > | Maps kernels to their overridable params and an index into the DataBinding input data collection that holds the corresponding param data. | Compute/PCGKernelParamsCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FPCGKernelParams * GetCachedKernelParams
(
int32 InKernelIndex |
Look up the cached parameter struct for a kernel. | Compute/PCGKernelParamsCache.h | |
bool Initialize
(
FPCGContext* InContext, |
Performs a readback of any kernels with overridable parameters that require readback, and caches them for quick access from kernels and data providers. | Compute/PCGKernelParamsCache.h | |
void Reset() |
Clear the cache. | Compute/PCGKernelParamsCache.h |