pub struct BlitPassDescriptor(/* private fields */);Expand description
A blit pass descriptor that configures a blit pass.
C++ equivalent: MTL::BlitPassDescriptor
Implementations§
Source§impl BlitPassDescriptor
impl BlitPassDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a BlitPassDescriptor from a raw pointer.
§Safety
The pointer must be a valid Metal blit pass descriptor object.
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new blit pass descriptor.
C++ equivalent: BlitPassDescriptor::blitPassDescriptor()
Sourcepub fn sample_buffer_attachments(
&self,
) -> Option<BlitPassSampleBufferAttachmentDescriptorArray>
pub fn sample_buffer_attachments( &self, ) -> Option<BlitPassSampleBufferAttachmentDescriptorArray>
Get the sample buffer attachments array.
C++ equivalent: BlitPassSampleBufferAttachmentDescriptorArray* sampleBufferAttachments() const
Trait Implementations§
Source§impl Clone for BlitPassDescriptor
impl Clone for BlitPassDescriptor
Source§impl Debug for BlitPassDescriptor
impl Debug for BlitPassDescriptor
Source§impl Default for BlitPassDescriptor
impl Default for BlitPassDescriptor
Source§impl Drop for BlitPassDescriptor
impl Drop for BlitPassDescriptor
Source§impl Referencing for BlitPassDescriptor
impl Referencing for BlitPassDescriptor
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 BlitPassDescriptor
impl Sync for BlitPassDescriptor
Auto Trait Implementations§
impl Freeze for BlitPassDescriptor
impl RefUnwindSafe for BlitPassDescriptor
impl Unpin for BlitPassDescriptor
impl UnwindSafe for BlitPassDescriptor
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