rendy_command

Struct Queue

Source
pub struct Queue<B: Backend> { /* private fields */ }
Expand description

Command queue wrapper.

Implementations§

Source§

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

Source

pub fn family_id(&self) -> FamilyId

Get owner id.

Source

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

Assert specified family is owner.

Source

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

Assert specified device is owner.

Source

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

Assert specified instance is owner.

Source§

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

Source

pub fn id(&self) -> QueueId

Id of the queue.

Source

pub fn raw(&mut self) -> &mut impl CommandQueue<B>

Get raw command queue.

Source

pub fn next_epoch(&self) -> u64

Returns next queue epoch.

Source

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>>, )

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

Source

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>, )

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

Source

pub fn wait_idle(&self) -> Result<(), OutOfMemory>

Wait for queue to finish all pending commands.

Trait Implementations§

Source§

impl<B: Debug + Backend> Debug for Queue<B>
where B::CommandQueue: Debug,

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<B> Freeze for Queue<B>
where <B as Backend>::CommandQueue: Freeze,

§

impl<B> RefUnwindSafe for Queue<B>

§

impl<B> Send for Queue<B>

§

impl<B> Sync for Queue<B>

§

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

§

impl<B> UnwindSafe for Queue<B>

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.