Trait objc2_metal::MTLCommandQueue

source ·
pub unsafe trait MTLCommandQueue: NSObjectProtocol + IsRetainable {
    // Provided methods
    fn label(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    fn setLabel(&self, label: Option<&NSString>)
       where Self: Sized + Message { ... }
    fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
       where Self: Sized + Message { ... }
    fn commandBuffer(
        &self
    ) -> Option<Retained<ProtocolObject<dyn MTLCommandBuffer>>>
       where Self: Sized + Message { ... }
    unsafe fn commandBufferWithDescriptor(
        &self,
        descriptor: &MTLCommandBufferDescriptor
    ) -> Option<Retained<ProtocolObject<dyn MTLCommandBuffer>>>
       where Self: Sized + Message { ... }
    unsafe fn commandBufferWithUnretainedReferences(
        &self
    ) -> Option<Retained<ProtocolObject<dyn MTLCommandBuffer>>>
       where Self: Sized + Message { ... }
    unsafe fn insertDebugCaptureBoundary(&self)
       where Self: Sized + Message { ... }
}
Available on crate feature MTLCommandQueue only.

Provided Methods§

source

fn label(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

source

fn setLabel(&self, label: Option<&NSString>)
where Self: Sized + Message,

source

fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
where Self: Sized + Message,

Available on crate feature MTLDevice only.
source

fn commandBuffer( &self ) -> Option<Retained<ProtocolObject<dyn MTLCommandBuffer>>>
where Self: Sized + Message,

Available on crate feature MTLCommandBuffer only.
source

unsafe fn commandBufferWithDescriptor( &self, descriptor: &MTLCommandBufferDescriptor ) -> Option<Retained<ProtocolObject<dyn MTLCommandBuffer>>>
where Self: Sized + Message,

Available on crate feature MTLCommandBuffer only.
source

unsafe fn commandBufferWithUnretainedReferences( &self ) -> Option<Retained<ProtocolObject<dyn MTLCommandBuffer>>>
where Self: Sized + Message,

Available on crate feature MTLCommandBuffer only.
source

unsafe fn insertDebugCaptureBoundary(&self)
where Self: Sized + Message,

👎Deprecated: Use MTLCaptureScope instead

Trait Implementations§

source§

impl ProtocolType for dyn MTLCommandQueue

source§

const NAME: &'static str = "MTLCommandQueue"

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 MTLCommandQueue

Implementations on Foreign Types§

source§

impl<T> MTLCommandQueue for ProtocolObject<T>
where T: ?Sized + MTLCommandQueue,

Implementors§