Trait objc2_metal::MTLIndirectCommandBuffer

source ·
pub unsafe trait MTLIndirectCommandBuffer: MTLResource + IsRetainable {
    // Provided methods
    fn size(&self) -> NSUInteger
       where Self: Sized + Message { ... }
    unsafe 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 MTLIndirectCommandBuffer and MTLResource only.

Provided Methods§

source

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

source

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

Available on crate feature MTLTypes only.
source

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

source

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

Available on crate feature MTLIndirectCommandEncoder only.
source

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

Available on crate feature MTLIndirectCommandEncoder only.

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.
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§