Struct metal::CommandEncoder

source ·
pub struct CommandEncoder(/* private fields */);

Methods from Deref<Target = CommandEncoderRef>§

source

pub fn label(&self) -> &str

source

pub fn set_label(&self, label: &str)

source

pub fn end_encoding(&self)

source

pub fn insert_debug_signpost(&self, name: &str)

source

pub fn push_debug_group(&self, name: &str)

source

pub fn pop_debug_group(&self)

Trait Implementations§

source§

impl AsMut<CommandEncoderRef> for CommandEncoder

source§

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

source§

fn as_ref(&self) -> &CommandEncoderRef

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<CommandEncoderRef> for CommandEncoder

source§

fn borrow(&self) -> &CommandEncoderRef

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<CommandEncoderRef> for CommandEncoder

source§

fn borrow_mut(&mut self) -> &mut CommandEncoderRef

Mutably borrows from an owned value. Read more
source§

impl Clone for CommandEncoder

source§

fn clone(&self) -> CommandEncoder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CommandEncoder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for CommandEncoder

§

type Target = CommandEncoderRef

The resulting type after dereferencing.
source§

fn deref(&self) -> &CommandEncoderRef

Dereferences the value.
source§

impl DerefMut for CommandEncoder

source§

fn deref_mut(&mut self) -> &mut CommandEncoderRef

Mutably dereferences the value.
source§

impl Drop for CommandEncoder

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl ForeignType for CommandEncoder

§

type CType = MTLCommandEncoder

The raw C type.
§

type Ref = CommandEncoderRef

The type representing a reference to this type.
source§

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

Returns a raw pointer to the wrapped value.
source§

fn into_ptr(self) -> *mut Self::CType

Consumes the wrapper and returns the raw pointer.
source§

impl From<AccelerationStructureCommandEncoder> for CommandEncoder

source§

fn from(item: AccelerationStructureCommandEncoder) -> Self

Converts to this type from the input type.
source§

impl From<BlitCommandEncoder> for CommandEncoder

source§

fn from(item: BlitCommandEncoder) -> Self

Converts to this type from the input type.
source§

impl From<ComputeCommandEncoder> for CommandEncoder

source§

fn from(item: ComputeCommandEncoder) -> Self

Converts to this type from the input type.
source§

impl From<ParallelRenderCommandEncoder> for CommandEncoder

source§

fn from(item: ParallelRenderCommandEncoder) -> Self

Converts to this type from the input type.
source§

impl From<RenderCommandEncoder> for CommandEncoder

source§

fn from(item: RenderCommandEncoder) -> Self

Converts to this type from the input type.
source§

impl Send for CommandEncoder

source§

impl Sync for CommandEncoder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.