Luna::RG::RenderGraphResourceType

enum RenderGraphResourceType : u8
{
    transient= 0
    persistent= 1
    external= 2
}

Specifies the residency type of one resource in one render graph.

Options

  • transient

    This resource is used to hold temporal data during the render graph execution. The render graph allocates this resource at first access, and releases the resource after last access.

  • persistent

    This resource is persistent. Such resources are used to hold data between render graph executions. The render graph allocates this resource when the graph is being compiled, and does not release it after the render graph execution is finished.

  • external

    This resource is imported to the render graph. The render graph does not manage the resource lifetime.