Skip to main content

RenderGraph

Struct RenderGraph 

Source
pub struct RenderGraph { /* private fields */ }
Expand description

Unified render-graph scheduler coordinating Pass 0..4, dirty-span uploads, incremental glyph atlas sync, and pipelined fences.

Implementations§

Source§

impl RenderGraph

Pass planning, coalesced dirty upload, Dual-Kawase blur orchestration, and submission for RenderGraph.

Source

pub fn plan_frame( &self, target: RenderGraphFrameTarget, counts: RenderGraphPlanCounts, ) -> RenderGraphFramePlan

Builds an explicit pass execution plan for the current frame.

§Arguments
  • RenderGraphFrameTarget - Target surface dimensions and optional external texture handle.
  • RenderGraphPlanCounts - Active pass counts for Pass 0, Pass 1, and Pass 3.
§Returns
  • RenderGraphFramePlan - Ordered render-graph pass schedule.
Source

pub fn execute_frame( &mut self, driver: &mut NativeGpuDriver, target: RenderGraphFrameTarget, batches: &[GpuBatch], blur_passes: &[GpuBackdropBlurPass], compute_work: Option<(&mut GpuComputeLayoutEngine, &GpuComputeSceneInput)>, ) -> Result<RenderGraphExecutionReceipt, PlatformError>

Executes Passes 0..4 against driver, updating real GPU timing, dirty-span savings, and completion fences.

§Arguments
  • &mut NativeGpuDriver - Target hardware GPU driver.
  • RenderGraphFrameTarget - Surface dimensions, clear color, and optional external texture handle.
  • &[GpuBatch] - Coalesced 64-byte primitive batches for Pass 4.
  • &[GpuBackdropBlurPass] - Dual-Kawase backdrop blur regions for Pass 3.
  • Option<(&mut GpuComputeLayoutEngine, &GpuComputeSceneInput)> - Optional Pass 0 GPU compute layout workload.
§Returns
  • Result<RenderGraphExecutionReceipt, PlatformError> - Detailed pass execution and timing receipt.
Source§

impl RenderGraph

Implements impl #impl_generics #name #ty_generics #where_clause.

Source

pub fn get_max_frames_in_flight(&self) -> u32

Source

pub fn get_mut_max_frames_in_flight(&mut self) -> &mut u32

Source

pub fn set_max_frames_in_flight(&mut self, val: u32) -> &mut Self

Source

pub fn get_dirty_coalescer(&self) -> &DirtySpanCoalescer

Source

pub fn get_mut_dirty_coalescer(&mut self) -> &mut DirtySpanCoalescer

Source

pub fn set_dirty_coalescer(&mut self, val: DirtySpanCoalescer) -> &mut Self

Source

pub fn get_gpu_glyph_atlas(&self) -> &IncrementalGpuGlyphAtlas

Source

pub fn get_mut_gpu_glyph_atlas(&mut self) -> &mut IncrementalGpuGlyphAtlas

Source

pub fn set_gpu_glyph_atlas( &mut self, val: IncrementalGpuGlyphAtlas, ) -> &mut Self

Source

pub fn get_last_plan(&self) -> &RenderGraphFramePlan

Source

pub fn get_mut_last_plan(&mut self) -> &mut RenderGraphFramePlan

Source

pub fn set_last_plan(&mut self, val: RenderGraphFramePlan) -> &mut Self

Source

pub fn get_last_receipt(&self) -> &RenderGraphExecutionReceipt

Source

pub fn get_mut_last_receipt(&mut self) -> &mut RenderGraphExecutionReceipt

Source

pub fn set_last_receipt( &mut self, val: RenderGraphExecutionReceipt, ) -> &mut Self

Source

pub fn get_executed_frames(&self) -> u64

Source

pub fn get_mut_executed_frames(&mut self) -> &mut u64

Source

pub fn set_executed_frames(&mut self, val: u64) -> &mut Self

Trait Implementations§

Source§

impl Clone for RenderGraph

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RenderGraph

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RenderGraph

Default RenderGraph configured for max_frames_in_flight = 2 pipelined CPU/GPU overlap.

Source§

fn default() -> Self

Creates a RenderGraph with 2 frames in flight and empty dirty-span and glyph atlas caches.

§Returns
  • Self - Initialized render-graph scheduler.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.