Skip to main content

ComputePipelineDescriptor

Struct ComputePipelineDescriptor 

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

Implementations§

Methods from Deref<Target = ComputePipelineDescriptorRef>§

Source

pub fn label(&self) -> &str

Source

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

Source

pub fn compute_function(&self) -> Option<&FunctionRef>

Source

pub fn set_compute_function(&self, function: Option<&FunctionRef>)

Source

pub fn thread_group_size_is_multiple_of_thread_execution_width(&self) -> bool

Source

pub fn set_thread_group_size_is_multiple_of_thread_execution_width( &self, size_is_multiple_of_width: bool, )

Source

pub fn max_total_threads_per_threadgroup(&self) -> NSUInteger

API_AVAILABLE(macos(10.14), ios(12.0));

Source

pub fn set_max_total_threads_per_threadgroup( &self, max_total_threads: NSUInteger, )

API_AVAILABLE(macos(10.14), ios(12.0));

Source

pub fn support_indirect_command_buffers(&self) -> bool

API_AVAILABLE(ios(13.0),macos(11.0));

Source

pub fn set_support_indirect_command_buffers(&self, support: bool)

API_AVAILABLE(ios(13.0),macos(11.0));

Source

pub fn support_adding_binary_functions(&self) -> bool

API_AVAILABLE(macos(11.0), ios(14.0));

Source

pub fn set_support_adding_binary_functions(&self, support: bool)

API_AVAILABLE(macos(11.0), ios(14.0));

Source

pub fn max_call_stack_depth(&self) -> NSUInteger

API_AVAILABLE(macos(11.0), ios(14.0));

Source

pub fn set_max_call_stack_depth(&self, depth: NSUInteger)

API_AVAILABLE(macos(11.0), ios(14.0));

Source

pub fn insert_libraries(&self) -> Vec<DynamicLibrary>

API_AVAILABLE(macos(11.0), ios(14.0)); Marshal to Rust Vec

Source

pub fn set_insert_libraries(&self, libraries: &[&DynamicLibraryRef])

Marshal from Rust slice

Source

pub fn binary_archives(&self) -> Vec<BinaryArchive>

API_AVAILABLE(macos(11.0), ios(14.0)); Marshal to Rust Vec

Source

pub fn set_binary_archives(&self, archives: &[&BinaryArchiveRef])

API_AVAILABLE(macos(11.0), ios(14.0)); Marshal from Rust slice

Source

pub fn linked_functions(&self) -> &LinkedFunctionsRef

API_AVAILABLE(macos(11.0), ios(14.0));

Source

pub fn set_linked_functions(&self, functions: &LinkedFunctionsRef)

API_AVAILABLE(macos(11.0), ios(14.0));

Source

pub fn stage_input_descriptor(&self) -> Option<&StageInputOutputDescriptorRef>

Source

pub fn set_stage_input_descriptor( &self, descriptor: Option<&StageInputOutputDescriptorRef>, )

Source

pub fn buffers(&self) -> Option<&PipelineBufferDescriptorArrayRef>

Source

pub fn reset(&self)

Trait Implementations§

Source§

impl AsMut<ComputePipelineDescriptorRef> for ComputePipelineDescriptor

Source§

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

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

impl AsRef<ComputePipelineDescriptorRef> for ComputePipelineDescriptor

Source§

fn as_ref(&self) -> &ComputePipelineDescriptorRef

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

impl Borrow<ComputePipelineDescriptorRef> for ComputePipelineDescriptor

Source§

fn borrow(&self) -> &ComputePipelineDescriptorRef

Immutably borrows from an owned value. Read more
Source§

impl BorrowMut<ComputePipelineDescriptorRef> for ComputePipelineDescriptor

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl Clone for ComputePipelineDescriptor

Source§

fn clone(&self) -> ComputePipelineDescriptor

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 ComputePipelineDescriptor

Source§

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

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

impl Deref for ComputePipelineDescriptor

Source§

type Target = ComputePipelineDescriptorRef

The resulting type after dereferencing.
Source§

fn deref(&self) -> &ComputePipelineDescriptorRef

Dereferences the value.
Source§

impl DerefMut for ComputePipelineDescriptor

Source§

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

Mutably dereferences the value.
Source§

impl Drop for ComputePipelineDescriptor

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 ComputePipelineDescriptor

Source§

type CType = MTLComputePipelineDescriptor

The raw C type.
Source§

type Ref = ComputePipelineDescriptorRef

The type representing a reference to this type.
Source§

unsafe fn from_ptr( ptr: *mut MTLComputePipelineDescriptor, ) -> ComputePipelineDescriptor

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

fn as_ptr(&self) -> *mut MTLComputePipelineDescriptor

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 ComputePipelineDescriptor

Source§

impl Sync for ComputePipelineDescriptor

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.