ezEngine Release 26.9
Loading...
Searching...
No Matches
ezRenderGraphManager Class Reference

Manages ezRenderGraph lifetime and execution. More...

#include <RenderGraphManager.h>

Static Public Member Functions

static ezSharedPtr< ezRenderGraphCreateRenderGraph (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 ezRenderGraphResourcePoolGetResourcePool ()
 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< ezRenderGraphPassObserverCreateObserver ()
 

Static Public Attributes

static ezEvent< const ezRenderGraphRenderEvent &, ezMutexs_RenderEvent
 

Friends

class ezRenderGraph
 
class ezRenderGraphPassObserver
 

Detailed Description

Manages ezRenderGraph lifetime and execution.

Member Function Documentation

◆ CreateRenderGraph()

ezSharedPtr< ezRenderGraph > ezRenderGraphManager::CreateRenderGraph ( ezStringView  sName,
ezEnum< ezRenderGraphPhase phase = ezRenderGraphPhase::Render 
)
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.

◆ GetExecutionSummary()

void ezRenderGraphManager::GetExecutionSummary ( ezRenderGraphInspectionSummary out_summary)
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.

◆ GetRenderGraphInspectionInfo()

ezResult ezRenderGraphManager::GetRenderGraphInspectionInfo ( ezUInt64  uiRenderGraphId,
ezRenderGraphInspectionInfo out_inspectionInfo 
)
static

Fills an inspection info of a specific render graph. Only safe to call from an ezRenderGraphRenderEvent::Type::AfterGraphExecution callback registered through s_RenderEvent.

◆ PrintBufferResourceHistory()

void ezRenderGraphManager::PrintBufferResourceHistory ( const ezBufferValidationError error)
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.

◆ PrintTextureResourceHistory()

void ezRenderGraphManager::PrintTextureResourceHistory ( const ezTextureValidationError error)
static

Prints all operations and barriers affecting a texture resource up to the current execution point. Only operations overlapping the given range are printed.


The documentation for this class was generated from the following files: