pub trait QueueMut: Queue + VkHandleMut {
// Provided methods
fn wait(&mut self) -> Result<()> { ... }
fn bind_sparse(
&mut self,
batches: &[impl SparseBindingOpBatch],
fence: Option<VkHandleRefMut<'_, VkFence>>,
) -> Result<()> { ... }
unsafe fn bind_sparse_raw(
&mut self,
batches: &[VkBindSparseInfo],
fence: Option<VkHandleRefMut<'_, VkFence>>,
) -> Result<()> { ... }
fn submit(
&mut self,
batches: &[impl SubmissionBatch],
fence: Option<VkHandleRefMut<'_, VkFence>>,
) -> Result<()> { ... }
unsafe fn submit_raw(
&mut self,
batches: &[SubmitInfo<'_, '_, '_>],
fence: Option<VkHandleRefMut<'_, VkFence>>,
) -> Result<()> { ... }
fn submit2(
&mut self,
batches: &[SubmitInfo2<'_, '_>],
fence: Option<VkHandleRefMut<'_, VkFence>>,
) -> Result<()> { ... }
fn present<'r>(&mut self, info: &PresentInfo<'r>) -> Result<()> { ... }
}
Provided Methods§
Sourcefn wait(&mut self) -> Result<()>
Available on crate feature Implements
only.
fn wait(&mut self) -> Result<()>
Implements
only.Wait for a object to become idle
Sourcefn bind_sparse(
&mut self,
batches: &[impl SparseBindingOpBatch],
fence: Option<VkHandleRefMut<'_, VkFence>>,
) -> Result<()>
Available on crate features Implements
and alloc
only.
fn bind_sparse( &mut self, batches: &[impl SparseBindingOpBatch], fence: Option<VkHandleRefMut<'_, VkFence>>, ) -> Result<()>
Implements
and alloc
only.Bind device memory to a sparse resource object
§Failure
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_DEVICE_LOST
Sourceunsafe fn bind_sparse_raw(
&mut self,
batches: &[VkBindSparseInfo],
fence: Option<VkHandleRefMut<'_, VkFence>>,
) -> Result<()>
Available on crate feature Implements
only.
unsafe fn bind_sparse_raw( &mut self, batches: &[VkBindSparseInfo], fence: Option<VkHandleRefMut<'_, VkFence>>, ) -> Result<()>
Implements
only.Sourcefn submit(
&mut self,
batches: &[impl SubmissionBatch],
fence: Option<VkHandleRefMut<'_, VkFence>>,
) -> Result<()>
Available on crate features Implements
and alloc
only.
fn submit( &mut self, batches: &[impl SubmissionBatch], fence: Option<VkHandleRefMut<'_, VkFence>>, ) -> Result<()>
Implements
and alloc
only.Submits a sequence of semaphores or command buffers to a queue
§Failure
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_DEVICE_LOST
Sourceunsafe fn submit_raw(
&mut self,
batches: &[SubmitInfo<'_, '_, '_>],
fence: Option<VkHandleRefMut<'_, VkFence>>,
) -> Result<()>
Available on crate feature Implements
only.
unsafe fn submit_raw( &mut self, batches: &[SubmitInfo<'_, '_, '_>], fence: Option<VkHandleRefMut<'_, VkFence>>, ) -> Result<()>
Implements
only.Sourcefn submit2(
&mut self,
batches: &[SubmitInfo2<'_, '_>],
fence: Option<VkHandleRefMut<'_, VkFence>>,
) -> Result<()>
Available on crate features Implements
and VK_KHR_synchronization2
only.
fn submit2( &mut self, batches: &[SubmitInfo2<'_, '_>], fence: Option<VkHandleRefMut<'_, VkFence>>, ) -> Result<()>
Implements
and VK_KHR_synchronization2
only.Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.