pub struct CommandQueueDescriptor(/* private fields */);Expand description
Descriptor for creating a MTL4 command queue.
C++ equivalent: MTL4::CommandQueueDescriptor
Implementations§
Source§impl CommandQueueDescriptor
impl CommandQueueDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a CommandQueueDescriptor from a raw pointer.
Sourcepub fn feedback_queue(&self) -> *mut c_void
pub fn feedback_queue(&self) -> *mut c_void
Get the feedback queue.
C++ equivalent: dispatch_queue_t feedbackQueue() const
Sourcepub fn set_feedback_queue(&self, queue: *mut c_void)
pub fn set_feedback_queue(&self, queue: *mut c_void)
Set the feedback queue.
C++ equivalent: void setFeedbackQueue(const dispatch_queue_t)
Trait Implementations§
Source§impl Clone for CommandQueueDescriptor
impl Clone for CommandQueueDescriptor
Source§impl Drop for CommandQueueDescriptor
impl Drop for CommandQueueDescriptor
Source§impl Referencing for CommandQueueDescriptor
impl Referencing for CommandQueueDescriptor
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 CommandQueueDescriptor
impl Sync for CommandQueueDescriptor
Auto Trait Implementations§
impl Freeze for CommandQueueDescriptor
impl RefUnwindSafe for CommandQueueDescriptor
impl Unpin for CommandQueueDescriptor
impl UnwindSafe for CommandQueueDescriptor
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