Struct metal::CommandEncoder
source · pub struct CommandEncoder(/* private fields */);
Methods from Deref<Target = CommandEncoderRef>§
pub fn label(&self) -> &str
pub fn set_label(&self, label: &str)
pub fn end_encoding(&self)
pub fn insert_debug_signpost(&self, name: &str)
pub fn push_debug_group(&self, name: &str)
pub fn pop_debug_group(&self)
Trait Implementations§
source§impl AsMut<CommandEncoderRef> for CommandEncoder
impl AsMut<CommandEncoderRef> for CommandEncoder
source§fn as_mut(&mut self) -> &mut CommandEncoderRef
fn as_mut(&mut self) -> &mut CommandEncoderRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<CommandEncoderRef> for CommandEncoder
impl AsRef<CommandEncoderRef> for CommandEncoder
source§fn as_ref(&self) -> &CommandEncoderRef
fn as_ref(&self) -> &CommandEncoderRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<CommandEncoderRef> for CommandEncoder
impl Borrow<CommandEncoderRef> for CommandEncoder
source§fn borrow(&self) -> &CommandEncoderRef
fn borrow(&self) -> &CommandEncoderRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<CommandEncoderRef> for CommandEncoder
impl BorrowMut<CommandEncoderRef> for CommandEncoder
source§fn borrow_mut(&mut self) -> &mut CommandEncoderRef
fn borrow_mut(&mut self) -> &mut CommandEncoderRef
Mutably borrows from an owned value. Read more
source§impl Clone for CommandEncoder
impl Clone for CommandEncoder
source§fn clone(&self) -> CommandEncoder
fn clone(&self) -> CommandEncoder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CommandEncoder
impl Debug for CommandEncoder
source§impl Deref for CommandEncoder
impl Deref for CommandEncoder
§type Target = CommandEncoderRef
type Target = CommandEncoderRef
The resulting type after dereferencing.
source§fn deref(&self) -> &CommandEncoderRef
fn deref(&self) -> &CommandEncoderRef
Dereferences the value.
source§impl DerefMut for CommandEncoder
impl DerefMut for CommandEncoder
source§fn deref_mut(&mut self) -> &mut CommandEncoderRef
fn deref_mut(&mut self) -> &mut CommandEncoderRef
Mutably dereferences the value.
source§impl Drop for CommandEncoder
impl Drop for CommandEncoder
source§impl ForeignType for CommandEncoder
impl ForeignType for CommandEncoder
§type CType = MTLCommandEncoder
type CType = MTLCommandEncoder
The raw C type.
§type Ref = CommandEncoderRef
type Ref = CommandEncoderRef
The type representing a reference to this type.
source§unsafe fn from_ptr(ptr: *mut MTLCommandEncoder) -> CommandEncoder
unsafe fn from_ptr(ptr: *mut MTLCommandEncoder) -> CommandEncoder
Constructs an instance of this type from its raw type. Read more
source§fn as_ptr(&self) -> *mut MTLCommandEncoder
fn as_ptr(&self) -> *mut MTLCommandEncoder
Returns a raw pointer to the wrapped value.
source§impl From<AccelerationStructureCommandEncoder> for CommandEncoder
impl From<AccelerationStructureCommandEncoder> for CommandEncoder
source§fn from(item: AccelerationStructureCommandEncoder) -> Self
fn from(item: AccelerationStructureCommandEncoder) -> Self
Converts to this type from the input type.
source§impl From<BlitCommandEncoder> for CommandEncoder
impl From<BlitCommandEncoder> for CommandEncoder
source§fn from(item: BlitCommandEncoder) -> Self
fn from(item: BlitCommandEncoder) -> Self
Converts to this type from the input type.
source§impl From<ComputeCommandEncoder> for CommandEncoder
impl From<ComputeCommandEncoder> for CommandEncoder
source§fn from(item: ComputeCommandEncoder) -> Self
fn from(item: ComputeCommandEncoder) -> Self
Converts to this type from the input type.
source§impl From<ParallelRenderCommandEncoder> for CommandEncoder
impl From<ParallelRenderCommandEncoder> for CommandEncoder
source§fn from(item: ParallelRenderCommandEncoder) -> Self
fn from(item: ParallelRenderCommandEncoder) -> Self
Converts to this type from the input type.
source§impl From<RenderCommandEncoder> for CommandEncoder
impl From<RenderCommandEncoder> for CommandEncoder
source§fn from(item: RenderCommandEncoder) -> Self
fn from(item: RenderCommandEncoder) -> Self
Converts to this type from the input type.
impl Send for CommandEncoder
impl Sync for CommandEncoder
Auto Trait Implementations§
impl Freeze for CommandEncoder
impl RefUnwindSafe for CommandEncoder
impl Unpin for CommandEncoder
impl UnwindSafe for CommandEncoder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)