pub struct IndirectCommandBufferRef(/* private fields */);Expand description
A borrowed reference to a IndirectCommandBuffer.
Implementations§
Source§impl IndirectCommandBufferRef
impl IndirectCommandBufferRef
pub fn size(&self) -> NSUInteger
pub fn indirect_render_command_at_index( &self, index: NSUInteger, ) -> &IndirectRenderCommandRef
pub fn indirect_compute_command_at_index( &self, index: NSUInteger, ) -> &IndirectComputeCommandRef
pub fn reset_with_range(&self, range: NSRange)
Methods from Deref<Target = ResourceRef>§
pub fn device(&self) -> &DeviceRef
pub fn label(&self) -> &str
pub fn set_label(&self, label: &str)
pub fn cpu_cache_mode(&self) -> MTLCPUCacheMode
pub fn storage_mode(&self) -> MTLStorageMode
pub fn set_purgeable_state(&self, state: MTLPurgeableState) -> MTLPurgeableState
Sourcepub fn allocated_size(&self) -> NSUInteger
pub fn allocated_size(&self) -> NSUInteger
Only available on macOS 10.13+ & iOS 10.11+
Sourcepub fn hazard_tracking_mode(&self) -> MTLHazardTrackingMode
pub fn hazard_tracking_mode(&self) -> MTLHazardTrackingMode
Only available on macos(10.15), ios(13.0)
Sourcepub fn resource_options(&self) -> MTLResourceOptions
pub fn resource_options(&self) -> MTLResourceOptions
Only available on macos(10.15), ios(13.0)
Sourcepub fn heap_offset(&self) -> NSUInteger
pub fn heap_offset(&self) -> NSUInteger
Only available on macos(10.15), ios(13.0)
Sourcepub fn make_aliasable(&self)
pub fn make_aliasable(&self)
Only available on macos(10.13), ios(10.0)
Sourcepub fn is_aliasable(&self) -> bool
pub fn is_aliasable(&self) -> bool
Only available on macos(10.13), ios(10.0)
Methods from Deref<Target = NsObjectRef>§
pub fn conforms_to_protocol<T>(&self) -> Result<bool, String>
Trait Implementations§
Source§impl AsMut<IndirectCommandBufferRef> for IndirectCommandBuffer
impl AsMut<IndirectCommandBufferRef> for IndirectCommandBuffer
Source§fn as_mut(&mut self) -> &mut IndirectCommandBufferRef
fn as_mut(&mut self) -> &mut IndirectCommandBufferRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<IndirectCommandBufferRef> for IndirectCommandBuffer
impl AsRef<IndirectCommandBufferRef> for IndirectCommandBuffer
Source§fn as_ref(&self) -> &IndirectCommandBufferRef
fn as_ref(&self) -> &IndirectCommandBufferRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<IndirectCommandBufferRef> for IndirectCommandBuffer
impl Borrow<IndirectCommandBufferRef> for IndirectCommandBuffer
Source§fn borrow(&self) -> &IndirectCommandBufferRef
fn borrow(&self) -> &IndirectCommandBufferRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<IndirectCommandBufferRef> for IndirectCommandBuffer
impl BorrowMut<IndirectCommandBufferRef> for IndirectCommandBuffer
Source§fn borrow_mut(&mut self) -> &mut IndirectCommandBufferRef
fn borrow_mut(&mut self) -> &mut IndirectCommandBufferRef
Mutably borrows from an owned value. Read more
Source§impl Debug for IndirectCommandBufferRef
impl Debug for IndirectCommandBufferRef
Source§impl Deref for IndirectCommandBufferRef
impl Deref for IndirectCommandBufferRef
Source§impl ForeignTypeRef for IndirectCommandBufferRef
impl ForeignTypeRef for IndirectCommandBufferRef
Source§type CType = MTLIndirectCommandBuffer
type CType = MTLIndirectCommandBuffer
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
Source§impl Message for IndirectCommandBufferRef
impl Message for IndirectCommandBufferRef
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more
Source§impl ToOwned for IndirectCommandBufferRef
impl ToOwned for IndirectCommandBufferRef
Source§type Owned = IndirectCommandBuffer
type Owned = IndirectCommandBuffer
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> IndirectCommandBuffer
fn to_owned(&self) -> IndirectCommandBuffer
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Send for IndirectCommandBufferRef
impl Sync for IndirectCommandBufferRef
Auto Trait Implementations§
impl Freeze for IndirectCommandBufferRef
impl !RefUnwindSafe for IndirectCommandBufferRef
impl Unpin for IndirectCommandBufferRef
impl UnwindSafe for IndirectCommandBufferRef
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more