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.

  1. Cull out unused passes and resources by scanning all dependency render passes and resources of output resources.

  2. Determines the lifetime of every transient resource.

  3. Initialize resource descriptors using user-defined descriptors.

  4. Calls the compile callback of every render pass in execution order to get render pass objects.

  5. Create persistent resources.

  6. Create time query heap if needed.

Parameters

  • in config

    The compilation configuration.