cobin/core_animation/ca_metal_drawable.rs
1use crate::{
2 metal,
3 PrivateMarker,
4 obj::Object
5};
6
7pub struct CAMetalDrawable(PrivateMarker);
8
9impl Object for CAMetalDrawable {}
10unsafe impl objc::Message for CAMetalDrawable {}
11
12impl CAMetalDrawable {
13 pub unsafe fn texture(&self) -> *mut metal::MTLTexture {
14 msg_send![self, texture]
15 }
16}