pub struct CommandQueue { /* private fields */ }Expand description
Command queue wrapper with additional functionality
Implementations§
Source§impl CommandQueue
impl CommandQueue
Sourcepub fn submit_single(&self, command_buffer: CommandBuffer) -> SubmissionIndex
pub fn submit_single(&self, command_buffer: CommandBuffer) -> SubmissionIndex
Sourcepub fn submit_many(
&self,
command_buffers: Vec<CommandBuffer>,
) -> SubmissionIndex
pub fn submit_many( &self, command_buffers: Vec<CommandBuffer>, ) -> SubmissionIndex
Sourcepub fn submit_encoder(&self, encoder: CommandEncoder) -> SubmissionIndex
pub fn submit_encoder(&self, encoder: CommandEncoder) -> SubmissionIndex
Sourcepub fn write_buffer(&self, buffer: &Buffer, offset: u64, data: &[u8])
pub fn write_buffer(&self, buffer: &Buffer, offset: u64, data: &[u8])
Write data directly to a buffer
This is a convenience method that bypasses the staging buffer and directly writes to the destination buffer.
§Arguments
buffer- Target bufferoffset- Offset in bytesdata- Data to write
Sourcepub fn queue_type(&self) -> QueueType
pub fn queue_type(&self) -> QueueType
Get the queue type
Auto Trait Implementations§
impl !RefUnwindSafe for CommandQueue
impl !UnwindSafe for CommandQueue
impl Freeze for CommandQueue
impl Send for CommandQueue
impl Sync for CommandQueue
impl Unpin for CommandQueue
impl UnsafeUnpin for CommandQueue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more