MTLIndirectCommandBuffer

Trait MTLIndirectCommandBuffer 

Source
pub unsafe trait MTLIndirectCommandBuffer: MTLResource {
    // Provided methods
    fn size(&self) -> NSUInteger
       where Self: Sized + Message { ... }
    fn gpuResourceID(&self) -> MTLResourceID
       where Self: Sized + Message { ... }
    unsafe fn resetWithRange(&self, range: NSRange)
       where Self: Sized + Message { ... }
    unsafe fn indirectRenderCommandAtIndex(
        &self,
        command_index: NSUInteger,
    ) -> Retained<ProtocolObject<dyn MTLIndirectRenderCommand>>
       where Self: Sized + Message { ... }
    unsafe fn indirectComputeCommandAtIndex(
        &self,
        command_index: NSUInteger,
    ) -> Retained<ProtocolObject<dyn MTLIndirectComputeCommand>>
       where Self: Sized + Message { ... }
}
Available on crate features MTLAllocation and MTLIndirectCommandBuffer and MTLResource only.
Expand description

Provided Methods§

Source

fn size(&self) -> NSUInteger
where Self: Sized + Message,

Source

fn gpuResourceID(&self) -> MTLResourceID
where Self: Sized + Message,

Available on crate feature MTLTypes only.

Handle of the GPU resource suitable for storing in an Argument Buffer

Source

unsafe fn resetWithRange(&self, range: NSRange)
where Self: Sized + Message,

§Safety

range might not be bounds-checked.

Source

unsafe fn indirectRenderCommandAtIndex( &self, command_index: NSUInteger, ) -> Retained<ProtocolObject<dyn MTLIndirectRenderCommand>>
where Self: Sized + Message,

Available on crate feature MTLIndirectCommandEncoder only.
§Safety

commandIndex might not be bounds-checked.

Source

unsafe fn indirectComputeCommandAtIndex( &self, command_index: NSUInteger, ) -> Retained<ProtocolObject<dyn MTLIndirectComputeCommand>>
where Self: Sized + Message,

Available on crate feature MTLIndirectCommandEncoder only.
§Safety

commandIndex might not be bounds-checked.

Trait Implementations§

Source§

impl ProtocolType for dyn MTLIndirectCommandBuffer

Source§

const NAME: &'static str = "MTLIndirectCommandBuffer"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn MTLIndirectCommandBuffer

Implementations on Foreign Types§

Source§

impl<T> MTLIndirectCommandBuffer for ProtocolObject<T>

Implementors§