pub struct MetalCommandManager { /* private fields */ }Expand description
Metal command manager
Implementations§
Source§impl MetalCommandManager
impl MetalCommandManager
pub fn new(config: MetalCommandConfig) -> Self
Sourcepub fn create_command_queue(
&mut self,
label: Option<String>,
priority: MetalQueuePriority,
) -> Result<u32, MetalError>
pub fn create_command_queue( &mut self, label: Option<String>, priority: MetalQueuePriority, ) -> Result<u32, MetalError>
Create command queue
Sourcepub fn create_command_buffer(
&mut self,
queue_id: u32,
) -> Result<u32, MetalError>
pub fn create_command_buffer( &mut self, queue_id: u32, ) -> Result<u32, MetalError>
Create command buffer
Sourcepub fn add_command(
&mut self,
queue_id: u32,
buffer_id: u32,
command: MetalCommand,
) -> Result<(), MetalError>
pub fn add_command( &mut self, queue_id: u32, buffer_id: u32, command: MetalCommand, ) -> Result<(), MetalError>
Add command to buffer
Sourcepub fn commit_command_buffer(
&mut self,
queue_id: u32,
buffer_id: u32,
) -> Result<(), MetalError>
pub fn commit_command_buffer( &mut self, queue_id: u32, buffer_id: u32, ) -> Result<(), MetalError>
Commit command buffer
Sourcepub fn wait_until_completed(
&mut self,
queue_id: u32,
buffer_id: u32,
) -> Result<(), MetalError>
pub fn wait_until_completed( &mut self, queue_id: u32, buffer_id: u32, ) -> Result<(), MetalError>
Wait for completion
Auto Trait Implementations§
impl Freeze for MetalCommandManager
impl RefUnwindSafe for MetalCommandManager
impl !Send for MetalCommandManager
impl !Sync for MetalCommandManager
impl Unpin for MetalCommandManager
impl UnsafeUnpin for MetalCommandManager
impl UnwindSafe for MetalCommandManager
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
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