[][src]Struct rendy_command::Queue

pub struct Queue<B: Backend> { /* fields omitted */ }

Command queue wrapper.

Methods

impl<B> Queue<B> where
    B: Backend
[src]

pub fn family_id(&self) -> FamilyId[src]

Get owner id.

pub fn assert_family_owner<C>(&self, family: &Family<B, C>)[src]

Assert specified family is owner.

pub fn assert_device_owner(&self, device: &Device<B>)[src]

Assert specified device is owner.

pub fn assert_instance_owner(&self, instance: &Instance<B>)[src]

Assert specified instance is owner.

impl<B> Queue<B> where
    B: Backend
[src]

pub fn id(&self) -> QueueId[src]

Id of the queue.

pub fn raw(&mut self) -> &mut impl RawCommandQueue<B>[src]

Get raw command queue.

pub fn next_epoch(&self) -> u64[src]

Returns next queue epoch.

pub unsafe fn submit<'a>(
    &mut self,
    submissions: impl IntoIterator<Item = Submission<B, impl IntoIterator<Item = (&'a impl Borrow<B::Semaphore> + 'a, PipelineStage)>, impl IntoIterator<Item = impl Submittable<B>>, impl IntoIterator<Item = &'a impl Borrow<B::Semaphore> + 'a>>>,
    fence: Option<&mut Fence<B>>
)
[src]

Submit commands to the queue of the family. Fence must be submitted.

pub unsafe fn submit_raw_fence<'a>(
    &mut self,
    submissions: impl IntoIterator<Item = Submission<B, impl IntoIterator<Item = (&'a impl Borrow<B::Semaphore> + 'a, PipelineStage)>, impl IntoIterator<Item = impl Submittable<B>>, impl IntoIterator<Item = &'a impl Borrow<B::Semaphore> + 'a>>>,
    fence: Option<&B::Fence>
)
[src]

Submit commands to the queue of the family. Fence must be submitted. This version uses raw fence and doesn't increment epoch.

pub fn wait_idle(&self) -> Result<(), HostExecutionError>[src]

Wait for queue to finish all pending commands.

Trait Implementations

impl<B: Backend> Debug for Queue<B>[src]

Auto Trait Implementations

impl<B> Unpin for Queue<B> where
    <B as Backend>::CommandQueue: Unpin

impl<B> Sync for Queue<B> where
    <B as Backend>::CommandQueue: Sync

impl<B> Send for Queue<B> where
    <B as Backend>::CommandQueue: Send

impl<B> UnwindSafe for Queue<B> where
    <B as Backend>::CommandQueue: UnwindSafe

impl<B> RefUnwindSafe for Queue<B> where
    <B as Backend>::CommandQueue: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Supports<T> for T[src]

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]