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.
impl RenderGraph
Pass planning, coalesced dirty upload, Dual-Kawase blur orchestration, and submission for RenderGraph.
Sourcepub fn plan_frame(
&self,
target: RenderGraphFrameTarget,
counts: RenderGraphPlanCounts,
) -> RenderGraphFramePlan
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.
Sourcepub fn execute_frame(
&mut self,
driver: &mut NativeGpuDriver,
target: RenderGraphFrameTarget,
batches: &[GpuBatch],
blur_passes: &[GpuBackdropBlurPass],
compute_work: Option<(&mut GpuComputeLayoutEngine, &GpuComputeSceneInput)>,
) -> Result<RenderGraphExecutionReceipt, PlatformError>
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.
impl RenderGraph
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_max_frames_in_flight(&self) -> u32
pub fn get_mut_max_frames_in_flight(&mut self) -> &mut u32
pub fn set_max_frames_in_flight(&mut self, val: u32) -> &mut Self
pub fn get_dirty_coalescer(&self) -> &DirtySpanCoalescer
pub fn get_mut_dirty_coalescer(&mut self) -> &mut DirtySpanCoalescer
pub fn set_dirty_coalescer(&mut self, val: DirtySpanCoalescer) -> &mut Self
pub fn get_gpu_glyph_atlas(&self) -> &IncrementalGpuGlyphAtlas
pub fn get_mut_gpu_glyph_atlas(&mut self) -> &mut IncrementalGpuGlyphAtlas
pub fn set_gpu_glyph_atlas( &mut self, val: IncrementalGpuGlyphAtlas, ) -> &mut Self
pub fn get_last_plan(&self) -> &RenderGraphFramePlan
pub fn get_mut_last_plan(&mut self) -> &mut RenderGraphFramePlan
pub fn set_last_plan(&mut self, val: RenderGraphFramePlan) -> &mut Self
pub fn get_last_receipt(&self) -> &RenderGraphExecutionReceipt
pub fn get_mut_last_receipt(&mut self) -> &mut RenderGraphExecutionReceipt
pub fn set_last_receipt( &mut self, val: RenderGraphExecutionReceipt, ) -> &mut Self
pub fn get_executed_frames(&self) -> u64
pub fn get_mut_executed_frames(&mut self) -> &mut u64
pub fn set_executed_frames(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for RenderGraph
impl Clone for RenderGraph
Source§impl Debug for RenderGraph
impl Debug for RenderGraph
Auto Trait Implementations§
impl Forget for RenderGraph
impl Freeze for RenderGraphwhere
*const u8 is !null: Freeze,
PhantomData<DirtyBufferSpan>: Freeze,
PhantomData<GpuPrimitiveInstance>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(GlyphKey, GpuGlyphPlacement)>: Freeze,
PhantomData<PixelDirtyRect>: Freeze,
PhantomData<RenderGraphPassKind>: Freeze,
impl Move for RenderGraph
impl RefUnwindSafe for RenderGraph
impl Send for RenderGraph
impl Sync for RenderGraph
impl Unpin for RenderGraph
impl UnsafeUnpin for RenderGraphwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<DirtyBufferSpan>: UnsafeUnpin,
PhantomData<GpuPrimitiveInstance>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(GlyphKey, GpuGlyphPlacement)>: UnsafeUnpin,
PhantomData<PixelDirtyRect>: UnsafeUnpin,
PhantomData<RenderGraphPassKind>: UnsafeUnpin,
impl UnwindSafe for RenderGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more