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