pub struct CommandQueueDescriptor(/* private fields */);Expand description
A descriptor for configuring command queue creation.
C++ equivalent: MTL::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 new CommandQueueDescriptor from a raw pointer.
§Safety
The pointer must be a valid Metal command queue descriptor object.
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new command queue descriptor.
C++ equivalent: CommandQueueDescriptor::alloc()->init()
Sourcepub fn max_command_buffer_count(&self) -> UInteger
pub fn max_command_buffer_count(&self) -> UInteger
Get the maximum number of command buffers in flight.
C++ equivalent: NS::UInteger maxCommandBufferCount() const
Sourcepub fn set_max_command_buffer_count(&self, count: UInteger)
pub fn set_max_command_buffer_count(&self, count: UInteger)
Set the maximum number of command buffers in flight.
C++ equivalent: void setMaxCommandBufferCount(NS::UInteger maxCommandBufferCount)
Sourcepub fn log_state(&self) -> *mut c_void
pub fn log_state(&self) -> *mut c_void
Get the log state for the command queue.
C++ equivalent: LogState* logState() const
Returns a raw pointer to the log state object.
Sourcepub unsafe fn set_log_state(&self, log_state: *const c_void)
pub unsafe fn set_log_state(&self, log_state: *const c_void)
Set the log state for the command queue.
C++ equivalent: void setLogState(const LogState* logState)
§Safety
The log_state pointer must be valid or null.