Skip to main content

RunPresent

Trait RunPresent 

Source
pub trait RunPresent<E = (), C = ()> {
    type Input<'a>
       where Self: 'a,
             E: 'a;
    type Output;
    type Error;

    // Required method
    fn run_present<'a>(
        &'a mut self,
        frame: &mut RunFrame<'a, E, C>,
        input: Self::Input<'a>,
    ) -> Result<Self::Output, Self::Error> ;
}
Expand description

Presentation finalization driven by a runtime.


📍 run


A runtime or driver calls run_present after rendering to finalize or expose the prepared artifact.

The presentation input may borrow from renderer- or scene-local state, while backend access is provided through the current RunFrame.

This keeps host access on the backend side and avoids coupling render artifacts to backend borrows.

Required Associated Types§

Source

type Input<'a> where Self: 'a, E: 'a

The artifact consumed during presentation.

Source

type Output

The successful result of a presentation step.

Source

type Error

The error type returned by presentation.

Required Methods§

Source

fn run_present<'a>( &'a mut self, frame: &mut RunFrame<'a, E, C>, input: Self::Input<'a>, ) -> Result<Self::Output, Self::Error>

Finalizes the prepared artifact using the current runtime frame.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§