rendy_command

Struct Submission

Source
pub struct Submission<B, W = Empty<(&'static <B as Backend>::Semaphore, PipelineStage)>, C = Empty<Submit<B, NoSimultaneousUse, PrimaryLevel, OutsideRenderPass>>, S = Empty<&'static <B as Backend>::Semaphore>> {
    pub waits: W,
    pub submits: C,
    pub signals: S,
    pub marker: PhantomData<fn() -> B>,
}
Expand description

Command queue submission.

Fields§

§waits: W

Iterator over semaphores with stage flag to wait on.

§submits: C

Iterator over submittables.

§signals: S

Iterator over semaphores to signal.

§marker: PhantomData<fn() -> B>

Marker type for submission backend.

Implementations§

Source§

impl<B> Submission<B>
where B: Backend,

Source

pub fn new() -> Self

Create new empty submission.

Source§

impl<B, W, S> Submission<B, W, Empty<Submit<B, NoSimultaneousUse, PrimaryLevel, OutsideRenderPass>>, S>
where B: Backend,

Source

pub fn submits<C>(self, submits: C) -> Submission<B, W, C, S>
where C: IntoIterator, C::Item: Submittable<B>,

Add submits to the submission.

Source§

impl<B, C, S> Submission<B, Empty<(&'static <B as Backend>::Semaphore, PipelineStage)>, C, S>
where B: Backend,

Source

pub fn wait<'a, W, E>(self, waits: W) -> Submission<B, W, C, S>
where W: IntoIterator<Item = (&'a E, PipelineStage)>, E: Borrow<B::Semaphore> + 'a,

Add waits to the submission.

Source§

impl<B, W, C> Submission<B, W, C, Empty<&'static <B as Backend>::Semaphore>>
where B: Backend,

Source

pub fn signal<'a, S, E>(self, signals: S) -> Submission<B, W, C, S>
where S: IntoIterator<Item = &'a E>, E: Borrow<B::Semaphore> + 'a,

Add signals to the submission.

Trait Implementations§

Source§

impl<B: Debug, W: Debug, C: Debug, S: Debug> Debug for Submission<B, W, C, S>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<B, W, C, S> Freeze for Submission<B, W, C, S>
where W: Freeze, C: Freeze, S: Freeze,

§

impl<B, W, C, S> RefUnwindSafe for Submission<B, W, C, S>

§

impl<B, W, C, S> Send for Submission<B, W, C, S>
where W: Send, C: Send, S: Send,

§

impl<B, W, C, S> Sync for Submission<B, W, C, S>
where W: Sync, C: Sync, S: Sync,

§

impl<B, W, C, S> Unpin for Submission<B, W, C, S>
where W: Unpin, C: Unpin, S: Unpin,

§

impl<B, W, C, S> UnwindSafe for Submission<B, W, C, S>
where W: UnwindSafe, C: UnwindSafe, S: UnwindSafe,

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

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

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.