pub struct ComputePassDescriptor(/* private fields */);Expand description
A compute pass descriptor that configures a compute pass.
C++ equivalent: MTL::ComputePassDescriptor
Implementations§
Source§impl ComputePassDescriptor
impl ComputePassDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a ComputePassDescriptor from a raw pointer.
§Safety
The pointer must be a valid Metal compute pass descriptor object.
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new compute pass descriptor.
C++ equivalent: ComputePassDescriptor::computePassDescriptor()
Sourcepub fn dispatch_type(&self) -> DispatchType
pub fn dispatch_type(&self) -> DispatchType
Get the dispatch type.
C++ equivalent: DispatchType dispatchType() const
Sourcepub fn set_dispatch_type(&self, dispatch_type: DispatchType)
pub fn set_dispatch_type(&self, dispatch_type: DispatchType)
Set the dispatch type.
C++ equivalent: void setDispatchType(DispatchType)
Sourcepub fn sample_buffer_attachments(
&self,
) -> Option<ComputePassSampleBufferAttachmentDescriptorArray>
pub fn sample_buffer_attachments( &self, ) -> Option<ComputePassSampleBufferAttachmentDescriptorArray>
Get the sample buffer attachments array.
C++ equivalent: ComputePassSampleBufferAttachmentDescriptorArray* sampleBufferAttachments() const
Trait Implementations§
Source§impl Clone for ComputePassDescriptor
impl Clone for ComputePassDescriptor
Source§impl Debug for ComputePassDescriptor
impl Debug for ComputePassDescriptor
Source§impl Default for ComputePassDescriptor
impl Default for ComputePassDescriptor
Source§impl Drop for ComputePassDescriptor
impl Drop for ComputePassDescriptor
Source§impl Referencing for ComputePassDescriptor
impl Referencing for ComputePassDescriptor
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for ComputePassDescriptor
impl Sync for ComputePassDescriptor
Auto Trait Implementations§
impl Freeze for ComputePassDescriptor
impl RefUnwindSafe for ComputePassDescriptor
impl Unpin for ComputePassDescriptor
impl UnwindSafe for ComputePassDescriptor
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