Trait objc2_metal::MTLCommandEncoder

source ·
pub unsafe trait MTLCommandEncoder: NSObjectProtocol + IsRetainable {
    // Provided methods
    unsafe fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
       where Self: Sized + Message { ... }
    fn label(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    fn setLabel(&self, label: Option<&NSString>)
       where Self: Sized + Message { ... }
    fn endEncoding(&self)
       where Self: Sized + Message { ... }
    fn insertDebugSignpost(&self, string: &NSString)
       where Self: Sized + Message { ... }
    fn pushDebugGroup(&self, string: &NSString)
       where Self: Sized + Message { ... }
    fn popDebugGroup(&self)
       where Self: Sized + Message { ... }
}
Available on crate feature MTLCommandEncoder only.

Provided Methods§

source

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

Available on crate feature MTLDevice only.
source

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

source

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

source

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

source

fn insertDebugSignpost(&self, string: &NSString)
where Self: Sized + Message,

source

fn pushDebugGroup(&self, string: &NSString)
where Self: Sized + Message,

source

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

Trait Implementations§

source§

impl ProtocolType for dyn MTLCommandEncoder

source§

const NAME: &'static str = "MTLCommandEncoder"

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 MTLCommandEncoder

Implementations on Foreign Types§

source§

impl<T> MTLCommandEncoder for ProtocolObject<T>

Implementors§