CAMetalDrawable

Trait CAMetalDrawable 

Source
pub unsafe trait CAMetalDrawable: MTLDrawable {
    // Provided methods
    unsafe fn texture(&self) -> Retained<ProtocolObject<dyn MTLTexture>>
       where Self: Sized + Message { ... }
    unsafe fn layer(&self) -> Retained<CAMetalLayer>
       where Self: Sized + Message { ... }
}
Available on crate features CAMetalLayer and objc2-metal only.
Expand description

Provided Methods§

Source

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

Source

unsafe fn layer(&self) -> Retained<CAMetalLayer>
where Self: Sized + Message,

Available on crate feature CALayer only.

Trait Implementations§

Source§

impl ProtocolType for dyn CAMetalDrawable

Source§

const NAME: &'static str = "CAMetalDrawable"

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 CAMetalDrawable

Implementations on Foreign Types§

Source§

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

Implementors§