Navigation
API > API/Plugins > API/Plugins/ComputeFramework > API/Plugins/ComputeFramework/UComputeGraph
Description
Cache shader resources for a specific compute kernel. This will trigger any required shader compilation.
| Name | CacheShadersForResource |
| Type | function |
| Header File | /Engine/Plugins/Runtime/ComputeFramework/Source/ComputeFramework/Public/ComputeFramework/ComputeGraph.h |
| Include Path | #include "ComputeFramework/ComputeGraph.h" |
| Source | /Engine/Plugins/Runtime/ComputeFramework/Source/ComputeFramework/Private/ComputeGraph.cpp |
static void CacheShadersForResource
(
EShaderPlatform ShaderPlatform,
ITargetPlatform const * TargetPlatform,
uint32 CompilationFlags,
FComputeKernelResource * Kernel
)