pub struct IndirectCommandBuffer(/* private fields */);Expand description
A buffer that stores GPU commands for indirect execution.
C++ equivalent: MTL::IndirectCommandBuffer
Indirect command buffers are created from a device and can be populated with commands either from the CPU or from GPU compute shaders.
Implementations§
Source§impl IndirectCommandBuffer
impl IndirectCommandBuffer
Sourcepub fn size(&self) -> UInteger
pub fn size(&self) -> UInteger
Get the number of commands this buffer can hold.
C++ equivalent: NS::UInteger size() const
Sourcepub fn gpu_resource_id(&self) -> ResourceID
pub fn gpu_resource_id(&self) -> ResourceID
Get the GPU resource ID for bindless access.
C++ equivalent: ResourceID gpuResourceID() const
Sourcepub fn reset(&self, location: UInteger, length: UInteger)
pub fn reset(&self, location: UInteger, length: UInteger)
Reset commands in the specified range.
C++ equivalent: void reset(NS::Range)
Sourcepub fn indirect_render_command(
&self,
index: UInteger,
) -> Option<IndirectRenderCommand>
pub fn indirect_render_command( &self, index: UInteger, ) -> Option<IndirectRenderCommand>
Get an indirect render command at the specified index.
C++ equivalent: IndirectRenderCommand* indirectRenderCommand(NS::UInteger)
Sourcepub fn indirect_compute_command(
&self,
index: UInteger,
) -> Option<IndirectComputeCommand>
pub fn indirect_compute_command( &self, index: UInteger, ) -> Option<IndirectComputeCommand>
Get an indirect compute command at the specified index.
C++ equivalent: IndirectComputeCommand* indirectComputeCommand(NS::UInteger)
Trait Implementations§
Source§impl Clone for IndirectCommandBuffer
impl Clone for IndirectCommandBuffer
Source§impl Debug for IndirectCommandBuffer
impl Debug for IndirectCommandBuffer
Source§impl Drop for IndirectCommandBuffer
impl Drop for IndirectCommandBuffer
Source§impl Referencing for IndirectCommandBuffer
impl Referencing for IndirectCommandBuffer
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 IndirectCommandBuffer
impl Sync for IndirectCommandBuffer
Auto Trait Implementations§
impl Freeze for IndirectCommandBuffer
impl RefUnwindSafe for IndirectCommandBuffer
impl Unpin for IndirectCommandBuffer
impl UnwindSafe for IndirectCommandBuffer
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