pub struct IndirectComputeCommandRef(/* private fields */);
Expand description
A borrowed reference to a IndirectComputeCommand
.
Implementations§
Source§impl IndirectComputeCommandRef
impl IndirectComputeCommandRef
pub fn set_compute_pipeline_state(&self, state: &ComputePipelineStateRef)
pub fn set_kernel_buffer( &self, index: NSUInteger, buffer: Option<&BufferRef>, offset: NSUInteger, )
pub fn set_threadgroup_memory_length( &self, index: NSUInteger, length: NSUInteger, )
pub fn set_stage_in_region(&self, region: MTLRegion)
pub fn set_barrier(&self)
pub fn clear_barrier(&self)
pub fn concurrent_dispatch_threadgroups( &self, thread_groups_per_grid: MTLSize, threads_per_threadgroup: MTLSize, )
pub fn concurrent_dispatch_threads( &self, thread_groups_per_grid: MTLSize, threads_per_threadgroup: MTLSize, )
pub fn reset(&self)
Trait Implementations§
Source§impl AsMut<IndirectComputeCommandRef> for IndirectComputeCommand
impl AsMut<IndirectComputeCommandRef> for IndirectComputeCommand
Source§fn as_mut(&mut self) -> &mut IndirectComputeCommandRef
fn as_mut(&mut self) -> &mut IndirectComputeCommandRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<IndirectComputeCommandRef> for IndirectComputeCommand
impl AsRef<IndirectComputeCommandRef> for IndirectComputeCommand
Source§fn as_ref(&self) -> &IndirectComputeCommandRef
fn as_ref(&self) -> &IndirectComputeCommandRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<IndirectComputeCommandRef> for IndirectComputeCommand
impl Borrow<IndirectComputeCommandRef> for IndirectComputeCommand
Source§fn borrow(&self) -> &IndirectComputeCommandRef
fn borrow(&self) -> &IndirectComputeCommandRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<IndirectComputeCommandRef> for IndirectComputeCommand
impl BorrowMut<IndirectComputeCommandRef> for IndirectComputeCommand
Source§fn borrow_mut(&mut self) -> &mut IndirectComputeCommandRef
fn borrow_mut(&mut self) -> &mut IndirectComputeCommandRef
Mutably borrows from an owned value. Read more
Source§impl Debug for IndirectComputeCommandRef
impl Debug for IndirectComputeCommandRef
Source§impl ForeignTypeRef for IndirectComputeCommandRef
impl ForeignTypeRef for IndirectComputeCommandRef
Source§type CType = MTLIndirectComputeCommand
type CType = MTLIndirectComputeCommand
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
Source§impl Message for IndirectComputeCommandRef
impl Message for IndirectComputeCommandRef
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more
Source§impl ToOwned for IndirectComputeCommandRef
impl ToOwned for IndirectComputeCommandRef
Source§type Owned = IndirectComputeCommand
type Owned = IndirectComputeCommand
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> IndirectComputeCommand
fn to_owned(&self) -> IndirectComputeCommand
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Send for IndirectComputeCommandRef
impl Sync for IndirectComputeCommandRef
Auto Trait Implementations§
impl Freeze for IndirectComputeCommandRef
impl !RefUnwindSafe for IndirectComputeCommandRef
impl Unpin for IndirectComputeCommandRef
impl UnwindSafe for IndirectComputeCommandRef
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