Navigation
API > API/Plugins > API/Plugins/PCG
Provides kernel overridable param values to the GPU at dispatch time.
This class automatically created alongside UPCGKernelParamsDataInterface. It reads override param values from FPCGKernelParams and writes them into a byte buffer for the shader. Subclass only if you need custom marshalling logic.
| Name | UPCGKernelParamsDataProvider |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Compute/DataInterfaces/PCGComputeDataInterface.h |
| Include Path | #include "Compute/DataInterfaces/PCGComputeDataInterface.h" |
Syntax
UCLASS (MinimalAPI, ClassGroup=(Procedural))
class UPCGKernelParamsDataProvider : public UPCGComputeDataProvider
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UComputeDataProvider → UPCGComputeDataProvider → UPCGKernelParamsDataProvider
Functions
Public Virtual
Overridden from UPCGComputeDataProvider
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool PerformPreExecuteReadbacks_GameThread
(
UPCGDataBinding* InBinding |
Called before PrepareForExecute to allow data providers to do any readbacks and finalize data descriptions. | Compute/DataInterfaces/PCGComputeDataInterface.h |
Overridden from UComputeDataProvider
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FComputeDataProviderRenderProxy * GetRenderProxy() |
Compute/DataInterfaces/PCGComputeDataInterface.h | ||
virtual void Initialize
(
const UComputeDataInterface* InDataInterface, |
Compute/DataInterfaces/PCGComputeDataInterface.h | ||
virtual void Reset() |
Compute/DataInterfaces/PCGComputeDataInterface.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void WriteKernelParamValues
(
uint8* OutBuffer, |
Write override param values into a byte buffer at offsets from the given layout. | Compute/DataInterfaces/PCGComputeDataInterface.h |