![]() |
ezEngine Release 26.9
|
Manages ezRenderGraph lifetime and execution. More...
#include <RenderGraphManager.h>
Static Public Member Functions | |
| static ezSharedPtr< ezRenderGraph > | CreateRenderGraph (ezStringView sName, ezEnum< ezRenderGraphPhase > phase=ezRenderGraphPhase::Render) |
| static void | EnqueueRenderGraph (const ezSharedPtr< ezRenderGraph > &pRenderGraph) |
| Enqueue a render graph for execution in the current frame. Must be called before ExecuteRenderGraphs. Usually in ezRenderWorldRenderEvent::Type::BeginRender or ezGALDeviceEvent::AfterBeginFrame. | |
| static void | ExecuteRenderGraphs (ezGALDevice *pDevice) |
| Must be called after ezGALDeviceEvent::BeforeBeginFrame and before ezGALDeviceEvent::AfterEndFrame. | |
| static ezRenderGraphResourcePool * | GetResourcePool () |
| Access the shared resource pool. Only valid after device init. | |
| static void | PrintTextureResourceHistory (const ezTextureValidationError &error) |
| static void | PrintBufferResourceHistory (const ezBufferValidationError &error) |
Pass Observers | |
| static void | GetExecutionSummary (ezRenderGraphInspectionSummary &out_summary) |
| static ezResult | GetRenderGraphInspectionInfo (ezUInt64 uiRenderGraphId, ezRenderGraphInspectionInfo &out_inspectionInfo) |
| static ezSharedPtr< ezRenderGraphPassObserver > | CreateObserver () |
Static Public Attributes | |
| static ezEvent< const ezRenderGraphRenderEvent &, ezMutex > | s_RenderEvent |
Friends | |
| class | ezRenderGraph |
| class | ezRenderGraphPassObserver |
Manages ezRenderGraph lifetime and execution.
|
static |
Creates a new render graph. The caller holds a reference via the returned scoped pointer. When all references are released, the graph is deleted at the end of the frame.
|
static |
Fills a summary with the render graphs and available swapchains. Only safe to call from an ezRenderGraphRenderEvent::Type::AfterGraphExecution callback registered through s_RenderEvent.
|
static |
Fills an inspection info of a specific render graph. Only safe to call from an ezRenderGraphRenderEvent::Type::AfterGraphExecution callback registered through s_RenderEvent.
|
static |
Prints all operations and barriers affecting a buffer resource up to the current execution point. Call from validation failure handlers to diagnose barrier issues.
|
static |
Prints all operations and barriers affecting a texture resource up to the current execution point. Only operations overlapping the given range are printed.