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
use crate::runtime::NSUInteger;

#[repr(C)]
#[derive(Copy, Clone)]
pub struct MTLSize {
  pub width: NSUInteger,
  pub height: NSUInteger,
  pub depth: NSUInteger,
}

impl MTLSize {
  pub fn new(width: NSUInteger, height: NSUInteger, depth: NSUInteger) -> Self {
    Self { width, height, depth }
  }
}