Navigation
API > API/Runtime > API/Runtime/RenderCore > API/Runtime/RenderCore/FRDGBuilder
Description
Sets the expected workload of the pass execution lambda. The default workload is 1 and is more or less the 'average cost' of a pass. Recommended usage is to set a workload equal to the number of complex draw / dispatch calls (each with its own parameters, etc), and only as a performance tweak if a particular pass is very expensive relative to other passes.
| Name | SetPassWorkload |
| Type | function |
| Header File | /Engine/Source/Runtime/RenderCore/Public/RenderGraphBuilder.h |
| Include Path | #include "RenderGraphBuilder.h" |
| Source | /Engine/Source/Runtime/RenderCore/Public/RenderGraphBuilder.inl |
void SetPassWorkload
(
FRDGPass * Pass,
uint32 Workload
)