cobin 0.1.1

Minimalistic bindings for Metal and related Cocoa frameworks.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{
  metal,
  PrivateMarker,
  obj::Object
};

pub struct CAMetalDrawable(PrivateMarker);

impl Object for CAMetalDrawable {}
unsafe impl objc::Message for CAMetalDrawable {}

impl CAMetalDrawable {
  pub unsafe fn texture(&self) -> *mut metal::MTLTexture {
    msg_send![self, texture]
  }
}