Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGComputeKernel
Description
Gathers additional compute sources referenced by this kernel. This is preferred to directly using includes, since it allows us to detect hash diffs and recompile when additional sources are changed externally. Note, you should not create new compute sources here, as their object names are not deterministic and will result in a new hash every time.
| Name | GatherAdditionalSources |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Compute/PCGComputeKernel.h |
| Include Path | #include "Compute/PCGComputeKernel.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Compute/PCGComputeKernel.cpp |
virtual void GatherAdditionalSources
(
TArray < TObjectPtr < class UComputeSource > > & OutAdditionalSources
) const