pub struct IOCommandQueueDescriptor(/* private fields */);Expand description
Descriptor for creating an IO command queue.
C++ equivalent: MTL::IOCommandQueueDescriptor
Implementations§
Source§impl IOCommandQueueDescriptor
impl IOCommandQueueDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new IO command queue descriptor.
C++ equivalent: static IOCommandQueueDescriptor* alloc()->init()
Sourcepub fn max_command_buffer_count(&self) -> UInteger
pub fn max_command_buffer_count(&self) -> UInteger
Get the maximum command buffer count.
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 command buffer count.
C++ equivalent: void setMaxCommandBufferCount(NS::UInteger)
Sourcepub fn max_commands_in_flight(&self) -> UInteger
pub fn max_commands_in_flight(&self) -> UInteger
Get the maximum commands in flight.
C++ equivalent: NS::UInteger maxCommandsInFlight() const
Sourcepub fn set_max_commands_in_flight(&self, count: UInteger)
pub fn set_max_commands_in_flight(&self, count: UInteger)
Set the maximum commands in flight.
C++ equivalent: void setMaxCommandsInFlight(NS::UInteger)
Sourcepub fn priority(&self) -> IOPriority
pub fn priority(&self) -> IOPriority
Get the priority.
C++ equivalent: IOPriority priority() const
Sourcepub fn set_priority(&self, priority: IOPriority)
pub fn set_priority(&self, priority: IOPriority)
Set the priority.
C++ equivalent: void setPriority(IOPriority)
Sourcepub fn queue_type(&self) -> IOCommandQueueType
pub fn queue_type(&self) -> IOCommandQueueType
Get the queue type.
C++ equivalent: IOCommandQueueType type() const
Sourcepub fn set_queue_type(&self, queue_type: IOCommandQueueType)
pub fn set_queue_type(&self, queue_type: IOCommandQueueType)
Set the queue type.
C++ equivalent: void setType(IOCommandQueueType)
Sourcepub fn scratch_buffer_allocator_ptr(&self) -> *const c_void
pub fn scratch_buffer_allocator_ptr(&self) -> *const c_void
Get the scratch buffer allocator as a raw pointer.
C++ equivalent: IOScratchBufferAllocator* scratchBufferAllocator() const
Sourcepub unsafe fn set_scratch_buffer_allocator_ptr(&self, allocator: *const c_void)
pub unsafe fn set_scratch_buffer_allocator_ptr(&self, allocator: *const c_void)
Set the scratch buffer allocator from a raw pointer.
§Safety
The pointer must be a valid IOScratchBufferAllocator or null.
C++ equivalent: void setScratchBufferAllocator(const IOScratchBufferAllocator*)