Skip to main content

ArgumentEncoder

Struct ArgumentEncoder 

Source
pub struct ArgumentEncoder(/* private fields */);

Methods from Deref<Target = ArgumentEncoderRef>§

Source

pub fn encoded_length(&self) -> NSUInteger

Source

pub fn alignment(&self) -> NSUInteger

Source

pub fn set_argument_buffer(&self, buffer: &BufferRef, offset: NSUInteger)

Source

pub fn set_argument_buffer_to_element( &self, array_element: NSUInteger, buffer: &BufferRef, offset: NSUInteger, )

Source

pub fn set_buffer( &self, at_index: NSUInteger, buffer: &BufferRef, offset: NSUInteger, )

Source

pub fn set_buffers( &self, start_index: NSUInteger, data: &[&BufferRef], offsets: &[NSUInteger], )

Source

pub fn set_texture(&self, at_index: NSUInteger, texture: &TextureRef)

Source

pub fn set_textures(&self, start_index: NSUInteger, data: &[&TextureRef])

Source

pub fn set_sampler_state( &self, at_index: NSUInteger, sampler_state: &SamplerStateRef, )

Source

pub fn set_sampler_states( &self, start_index: NSUInteger, data: &[&SamplerStateRef], )

Source

pub fn set_render_pipeline_state( &self, at_index: NSUInteger, pipeline: &RenderPipelineStateRef, )

Source

pub fn set_render_pipeline_states( &self, start_index: NSUInteger, pipelines: &[&RenderPipelineStateRef], )

Source

pub fn constant_data(&self, at_index: NSUInteger) -> *mut c_void

Source

pub fn set_indirect_command_buffer( &self, at_index: NSUInteger, buffer: &IndirectCommandBufferRef, )

Source

pub fn set_indirect_command_buffers( &self, start_index: NSUInteger, data: &[&IndirectCommandBufferRef], )

Source

pub fn new_argument_encoder_for_buffer( &self, index: NSUInteger, ) -> ArgumentEncoder

Trait Implementations§

Source§

impl AsMut<ArgumentEncoderRef> for ArgumentEncoder

Source§

fn as_mut(&mut self) -> &mut ArgumentEncoderRef

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<ArgumentEncoderRef> for ArgumentEncoder

Source§

fn as_ref(&self) -> &ArgumentEncoderRef

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

impl Borrow<ArgumentEncoderRef> for ArgumentEncoder

Source§

fn borrow(&self) -> &ArgumentEncoderRef

Immutably borrows from an owned value. Read more
Source§

impl BorrowMut<ArgumentEncoderRef> for ArgumentEncoder

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl Clone for ArgumentEncoder

Source§

fn clone(&self) -> ArgumentEncoder

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ArgumentEncoder

Source§

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

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

impl Deref for ArgumentEncoder

Source§

type Target = ArgumentEncoderRef

The resulting type after dereferencing.
Source§

fn deref(&self) -> &ArgumentEncoderRef

Dereferences the value.
Source§

impl DerefMut for ArgumentEncoder

Source§

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

Mutably dereferences the value.
Source§

impl Drop for ArgumentEncoder

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl ForeignType for ArgumentEncoder

Source§

type CType = MTLArgumentEncoder

The raw C type.
Source§

type Ref = ArgumentEncoderRef

The type representing a reference to this type.
Source§

unsafe fn from_ptr(ptr: *mut MTLArgumentEncoder) -> ArgumentEncoder

Constructs an instance of this type from its raw type. Read more
Source§

fn as_ptr(&self) -> *mut MTLArgumentEncoder

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 Send for ArgumentEncoder

Source§

impl Sync for ArgumentEncoder

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§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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>,

Source§

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>,

Source§

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.