Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

InFlight

Struct InFlight 

Source
pub struct InFlight<const N: usize, S: 'static> { /* private fields */ }
Expand description

A frame the GPU is walking, owning its 'static storage and the GpuDma token until wait.

Dropping or forgetting it leaks both: the storage then stays out of reach for the rest of the run instead of being reused under the walk.

Implementations§

Source§

impl<const N: usize, S> InFlight<N, S>

Source

pub fn is_done(&self) -> bool

True once the walk has finished (the GPU may still be drawing the last packets; the packets themselves are free).

Source

pub fn wait(self) -> (&'static mut FrameStorage<N, S>, GpuDma)

Wait for the walk, then hand back the storage and the token.

Trait Implementations§

Source§

impl<const N: usize, S: Debug + 'static> Debug for InFlight<N, S>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<const N: usize, S> Freeze for InFlight<N, S>

§

impl<const N: usize, S> RefUnwindSafe for InFlight<N, S>
where S: RefUnwindSafe,

§

impl<const N: usize, S> Send for InFlight<N, S>
where S: Send,

§

impl<const N: usize, S> Sync for InFlight<N, S>
where S: Sync,

§

impl<const N: usize, S> Unpin for InFlight<N, S>

§

impl<const N: usize, S> UnsafeUnpin for InFlight<N, S>

§

impl<const N: usize, S> !UnwindSafe for InFlight<N, S>

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.