[−][src]Struct amethyst_rendy::rendy::hal::queue::CommandQueue
Stronger-typed and safer CommandQueue
wraps around RawCommandQueue
.
Methods
impl<B, C> CommandQueue<B, C> where
B: Backend,
C: Capability,
[src]
B: Backend,
C: Capability,
pub unsafe fn new(raw: <B as Backend>::CommandQueue) -> CommandQueue<B, C>
[src]
Create typed command queue from raw.
Safety
<C as Capability>::supported_by(queue_type)
must return true
for queue_type
being the type this raw
queue.
pub fn as_raw(&self) -> &<B as Backend>::CommandQueue
[src]
Get a reference to the raw command queue
pub unsafe fn as_raw_mut(&mut self) -> &mut <B as Backend>::CommandQueue
[src]
Get a mutable reference to the raw command queue
pub fn into_raw(self) -> <B as Backend>::CommandQueue
[src]
Downgrade a typed command queue to untyped one.
pub unsafe fn submit<'a, T, Ic, S, Iw, Is>(
&mut self,
submission: Submission<Ic, Iw, Is>,
fence: Option<&<B as Backend>::Fence>
) where
Ic: IntoIterator<Item = &'a T>,
Is: IntoIterator<Item = &'a S>,
Iw: IntoIterator<Item = (&'a S, PipelineStage)>,
S: 'a + Borrow<<B as Backend>::Semaphore>,
T: 'a + Submittable<B, C, Primary>,
[src]
&mut self,
submission: Submission<Ic, Iw, Is>,
fence: Option<&<B as Backend>::Fence>
) where
Ic: IntoIterator<Item = &'a T>,
Is: IntoIterator<Item = &'a S>,
Iw: IntoIterator<Item = (&'a S, PipelineStage)>,
S: 'a + Borrow<<B as Backend>::Semaphore>,
T: 'a + Submittable<B, C, Primary>,
Submit command buffers to queue for execution.
fence
must be in unsignalled state, and will be signalled after all command buffers in the submission have
finished execution.
pub unsafe fn submit_nosemaphores<'a, T, I>(
&mut self,
command_buffers: I,
fence: Option<&<B as Backend>::Fence>
) where
I: IntoIterator<Item = &'a T>,
T: 'a + Submittable<B, C, Primary>,
[src]
&mut self,
command_buffers: I,
fence: Option<&<B as Backend>::Fence>
) where
I: IntoIterator<Item = &'a T>,
T: 'a + Submittable<B, C, Primary>,
Submit command buffers without any semaphore waits or signals.
pub unsafe fn present<'a, W, Is, S, Iw>(
&mut self,
swapchains: Is,
wait_semaphores: Iw
) -> Result<Option<Suboptimal>, PresentError> where
Is: IntoIterator<Item = (&'a W, u32)>,
Iw: IntoIterator<Item = &'a S>,
S: 'a + Borrow<<B as Backend>::Semaphore>,
W: 'a + Borrow<<B as Backend>::Swapchain>,
[src]
&mut self,
swapchains: Is,
wait_semaphores: Iw
) -> Result<Option<Suboptimal>, PresentError> where
Is: IntoIterator<Item = (&'a W, u32)>,
Iw: IntoIterator<Item = &'a S>,
S: 'a + Borrow<<B as Backend>::Semaphore>,
W: 'a + Borrow<<B as Backend>::Swapchain>,
Presents the result of the queue to the given swapchains, after waiting on all the
semaphores given in wait_semaphores
. A given swapchain must not appear in this
list more than once.
pub fn wait_idle(&self) -> Result<(), HostExecutionError>
[src]
Wait for the queue to idle.
pub unsafe fn downgrade<D>(&mut self) -> &mut CommandQueue<B, D> where
C: Supports<D>,
[src]
C: Supports<D>,
Downgrade a command queue to a lesser capability type.
Trait Implementations
impl<B, C> Debug for CommandQueue<B, C> where
B: Backend + Debug,
C: Debug,
<B as Backend>::CommandQueue: Debug,
[src]
B: Backend + Debug,
C: Debug,
<B as Backend>::CommandQueue: Debug,
Auto Trait Implementations
impl<B, C> Unpin for CommandQueue<B, C> where
C: Unpin,
<B as Backend>::CommandQueue: Unpin,
C: Unpin,
<B as Backend>::CommandQueue: Unpin,
impl<B, C> Sync for CommandQueue<B, C> where
C: Sync,
<B as Backend>::CommandQueue: Sync,
C: Sync,
<B as Backend>::CommandQueue: Sync,
impl<B, C> Send for CommandQueue<B, C> where
C: Send,
<B as Backend>::CommandQueue: Send,
C: Send,
<B as Backend>::CommandQueue: Send,
impl<B, C> UnwindSafe for CommandQueue<B, C> where
C: UnwindSafe,
<B as Backend>::CommandQueue: UnwindSafe,
C: UnwindSafe,
<B as Backend>::CommandQueue: UnwindSafe,
impl<B, C> RefUnwindSafe for CommandQueue<B, C> where
C: RefUnwindSafe,
<B as Backend>::CommandQueue: RefUnwindSafe,
C: RefUnwindSafe,
<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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
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>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
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>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Supports<T> for T
[src]
impl<T> Erased for T
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,