Luna::RG::IRenderGraph::compile
virtual RV compile(const RenderGraphCompileConfig &config)=0
Compiles the render graph.
This function does the following steps in order:1. Set up internal render pass and resource data.
-
Cull out unused passes and resources by scanning all dependency render passes and resources of output resources.
-
Determines the lifetime of every transient resource.
-
Initialize resource descriptors using user-defined descriptors.
-
Calls the compile callback of every render pass in execution order to get render pass objects.
-
Create persistent resources.
-
Create time query heap if needed.
Parameters
-
in config
The compilation configuration.