pub struct MetalCommandBuffer { /* private fields */ }Expand description
A Metal command buffer
Implementations§
Source§impl MetalCommandBuffer
impl MetalCommandBuffer
Sourcepub fn render_command_encoder(
&self,
render_pass: &MetalRenderPassDescriptor,
) -> Result<MetalRenderCommandEncoder, MetalError>
pub fn render_command_encoder( &self, render_pass: &MetalRenderPassDescriptor, ) -> Result<MetalRenderCommandEncoder, MetalError>
Create a render command encoder
§Errors
Returns an error after commit, while another encoder is active, or when native encoder creation fails.
Sourcepub fn present_drawable(
&self,
drawable: &MetalDrawable,
) -> Result<(), MetalError>
pub fn present_drawable( &self, drawable: &MetalDrawable, ) -> Result<(), MetalError>
Trait Implementations§
Source§impl Clone for MetalCommandBuffer
impl Clone for MetalCommandBuffer
Source§impl Debug for MetalCommandBuffer
impl Debug for MetalCommandBuffer
Source§impl Drop for MetalCommandBuffer
impl Drop for MetalCommandBuffer
Auto Trait Implementations§
impl !Send for MetalCommandBuffer
impl !Sync for MetalCommandBuffer
impl Freeze for MetalCommandBuffer
impl RefUnwindSafe for MetalCommandBuffer
impl Unpin for MetalCommandBuffer
impl UnsafeUnpin for MetalCommandBuffer
impl UnwindSafe for MetalCommandBuffer
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