pub struct CommandBufferOptions(/* private fields */);Expand description
Options for MTL4 command buffer creation.
C++ equivalent: MTL4::CommandBufferOptions
Implementations§
Source§impl CommandBufferOptions
impl CommandBufferOptions
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a CommandBufferOptions from a raw pointer.
Sourcepub fn log_state(&self) -> Option<LogState>
pub fn log_state(&self) -> Option<LogState>
Get the log state.
C++ equivalent: MTL::LogState* logState() const
Sourcepub fn set_log_state(&self, log_state: &LogState)
pub fn set_log_state(&self, log_state: &LogState)
Set the log state.
C++ equivalent: void setLogState(MTL::LogState*)
Trait Implementations§
Source§impl Clone for CommandBufferOptions
impl Clone for CommandBufferOptions
Source§impl Drop for CommandBufferOptions
impl Drop for CommandBufferOptions
Source§impl Referencing for CommandBufferOptions
impl Referencing for CommandBufferOptions
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 CommandBufferOptions
impl Sync for CommandBufferOptions
Auto Trait Implementations§
impl Freeze for CommandBufferOptions
impl RefUnwindSafe for CommandBufferOptions
impl Unpin for CommandBufferOptions
impl UnwindSafe for CommandBufferOptions
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