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§
unsafe fn texture(&self) -> Retained<ProtocolObject<dyn MTLTexture>>
unsafe fn layer(&self) -> Retained<CAMetalLayer>
Available on crate feature
CALayer
only.