pub struct ComputePipelineDescriptor(/* private fields */);Implementations§
Methods from Deref<Target = ComputePipelineDescriptorRef>§
pub fn label(&self) -> &str
pub fn set_label(&self, label: &str)
pub fn compute_function(&self) -> Option<&FunctionRef>
pub fn set_compute_function(&self, function: Option<&FunctionRef>)
pub fn thread_group_size_is_multiple_of_thread_execution_width(&self) -> bool
pub fn set_thread_group_size_is_multiple_of_thread_execution_width( &self, size_is_multiple_of_width: bool, )
Sourcepub fn max_total_threads_per_threadgroup(&self) -> NSUInteger
pub fn max_total_threads_per_threadgroup(&self) -> NSUInteger
API_AVAILABLE(macos(10.14), ios(12.0));
Sourcepub fn set_max_total_threads_per_threadgroup(
&self,
max_total_threads: NSUInteger,
)
pub fn set_max_total_threads_per_threadgroup( &self, max_total_threads: NSUInteger, )
API_AVAILABLE(macos(10.14), ios(12.0));
Sourcepub fn support_indirect_command_buffers(&self) -> bool
pub fn support_indirect_command_buffers(&self) -> bool
API_AVAILABLE(ios(13.0),macos(11.0));
Sourcepub fn set_support_indirect_command_buffers(&self, support: bool)
pub fn set_support_indirect_command_buffers(&self, support: bool)
API_AVAILABLE(ios(13.0),macos(11.0));
Sourcepub fn support_adding_binary_functions(&self) -> bool
pub fn support_adding_binary_functions(&self) -> bool
API_AVAILABLE(macos(11.0), ios(14.0));
Sourcepub fn set_support_adding_binary_functions(&self, support: bool)
pub fn set_support_adding_binary_functions(&self, support: bool)
API_AVAILABLE(macos(11.0), ios(14.0));
Sourcepub fn max_call_stack_depth(&self) -> NSUInteger
pub fn max_call_stack_depth(&self) -> NSUInteger
API_AVAILABLE(macos(11.0), ios(14.0));
Sourcepub fn set_max_call_stack_depth(&self, depth: NSUInteger)
pub fn set_max_call_stack_depth(&self, depth: NSUInteger)
API_AVAILABLE(macos(11.0), ios(14.0));
Sourcepub fn insert_libraries(&self) -> Vec<DynamicLibrary>
pub fn insert_libraries(&self) -> Vec<DynamicLibrary>
API_AVAILABLE(macos(11.0), ios(14.0)); Marshal to Rust Vec
Sourcepub fn set_insert_libraries(&self, libraries: &[&DynamicLibraryRef])
pub fn set_insert_libraries(&self, libraries: &[&DynamicLibraryRef])
Marshal from Rust slice
Sourcepub fn binary_archives(&self) -> Vec<BinaryArchive>
pub fn binary_archives(&self) -> Vec<BinaryArchive>
API_AVAILABLE(macos(11.0), ios(14.0)); Marshal to Rust Vec
Sourcepub fn set_binary_archives(&self, archives: &[&BinaryArchiveRef])
pub fn set_binary_archives(&self, archives: &[&BinaryArchiveRef])
API_AVAILABLE(macos(11.0), ios(14.0)); Marshal from Rust slice
Sourcepub fn linked_functions(&self) -> &LinkedFunctionsRef
pub fn linked_functions(&self) -> &LinkedFunctionsRef
API_AVAILABLE(macos(11.0), ios(14.0));
Sourcepub fn set_linked_functions(&self, functions: &LinkedFunctionsRef)
pub fn set_linked_functions(&self, functions: &LinkedFunctionsRef)
API_AVAILABLE(macos(11.0), ios(14.0));
pub fn stage_input_descriptor(&self) -> Option<&StageInputOutputDescriptorRef>
pub fn set_stage_input_descriptor( &self, descriptor: Option<&StageInputOutputDescriptorRef>, )
pub fn buffers(&self) -> Option<&PipelineBufferDescriptorArrayRef>
pub fn reset(&self)
Trait Implementations§
Source§impl AsMut<ComputePipelineDescriptorRef> for ComputePipelineDescriptor
impl AsMut<ComputePipelineDescriptorRef> for ComputePipelineDescriptor
Source§fn as_mut(&mut self) -> &mut ComputePipelineDescriptorRef
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
impl AsRef<ComputePipelineDescriptorRef> for ComputePipelineDescriptor
Source§fn as_ref(&self) -> &ComputePipelineDescriptorRef
fn as_ref(&self) -> &ComputePipelineDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<ComputePipelineDescriptorRef> for ComputePipelineDescriptor
impl Borrow<ComputePipelineDescriptorRef> for ComputePipelineDescriptor
Source§fn borrow(&self) -> &ComputePipelineDescriptorRef
fn borrow(&self) -> &ComputePipelineDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<ComputePipelineDescriptorRef> for ComputePipelineDescriptor
impl BorrowMut<ComputePipelineDescriptorRef> for ComputePipelineDescriptor
Source§fn borrow_mut(&mut self) -> &mut ComputePipelineDescriptorRef
fn borrow_mut(&mut self) -> &mut ComputePipelineDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl Clone for ComputePipelineDescriptor
impl Clone for ComputePipelineDescriptor
Source§fn clone(&self) -> ComputePipelineDescriptor
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComputePipelineDescriptor
impl Debug for ComputePipelineDescriptor
Source§impl Deref for ComputePipelineDescriptor
impl Deref for ComputePipelineDescriptor
Source§type Target = ComputePipelineDescriptorRef
type Target = ComputePipelineDescriptorRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &ComputePipelineDescriptorRef
fn deref(&self) -> &ComputePipelineDescriptorRef
Dereferences the value.
Source§impl DerefMut for ComputePipelineDescriptor
impl DerefMut for ComputePipelineDescriptor
Source§fn deref_mut(&mut self) -> &mut ComputePipelineDescriptorRef
fn deref_mut(&mut self) -> &mut ComputePipelineDescriptorRef
Mutably dereferences the value.
Source§impl Drop for ComputePipelineDescriptor
impl Drop for ComputePipelineDescriptor
Source§impl ForeignType for ComputePipelineDescriptor
impl ForeignType for ComputePipelineDescriptor
Source§type CType = MTLComputePipelineDescriptor
type CType = MTLComputePipelineDescriptor
The raw C type.
Source§type Ref = ComputePipelineDescriptorRef
type Ref = ComputePipelineDescriptorRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(
ptr: *mut MTLComputePipelineDescriptor,
) -> ComputePipelineDescriptor
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
fn as_ptr(&self) -> *mut MTLComputePipelineDescriptor
Returns a raw pointer to the wrapped value.
impl Send for ComputePipelineDescriptor
impl Sync for ComputePipelineDescriptor
Auto Trait Implementations§
impl Freeze for ComputePipelineDescriptor
impl RefUnwindSafe for ComputePipelineDescriptor
impl Unpin for ComputePipelineDescriptor
impl UnsafeUnpin for ComputePipelineDescriptor
impl UnwindSafe for ComputePipelineDescriptor
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