pub struct ComputePipelineDescriptor<'a> {
pub label: Option<&'a str>,
pub compute_function: &'a MetalFunction,
pub thread_group_size_is_multiple_of_thread_execution_width: bool,
pub max_total_threads_per_threadgroup: usize,
pub support_indirect_command_buffers: bool,
}Expand description
Re-exports the Metal framework surface for this item.
Safe Rust description of MTLComputePipelineDescriptor.
Fields§
§label: Option<&'a str>Mirrors the Metal framework property for label.
compute_function: &'a MetalFunctionMirrors the Metal framework property for compute_function.
thread_group_size_is_multiple_of_thread_execution_width: boolMirrors the Metal framework property for thread_group_size_is_multiple_of_thread_execution_width.
max_total_threads_per_threadgroup: usizeMirrors the Metal framework property for max_total_threads_per_threadgroup.
support_indirect_command_buffers: boolMirrors the Metal framework property for support_indirect_command_buffers.
Implementations§
Source§impl<'a> ComputePipelineDescriptor<'a>
impl<'a> ComputePipelineDescriptor<'a>
Sourcepub const fn new(compute_function: &'a MetalFunction) -> Self
pub const fn new(compute_function: &'a MetalFunction) -> Self
Create a descriptor for a single compute function with default tuning flags.
Trait Implementations§
Source§impl<'a> Clone for ComputePipelineDescriptor<'a>
impl<'a> Clone for ComputePipelineDescriptor<'a>
Source§fn clone(&self) -> ComputePipelineDescriptor<'a>
fn clone(&self) -> ComputePipelineDescriptor<'a>
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 moreimpl<'a> Copy for ComputePipelineDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComputePipelineDescriptor<'a>
impl<'a> RefUnwindSafe for ComputePipelineDescriptor<'a>
impl<'a> Send for ComputePipelineDescriptor<'a>
impl<'a> Sync for ComputePipelineDescriptor<'a>
impl<'a> Unpin for ComputePipelineDescriptor<'a>
impl<'a> UnsafeUnpin for ComputePipelineDescriptor<'a>
impl<'a> UnwindSafe for ComputePipelineDescriptor<'a>
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