cobin 0.1.1

Minimalistic bindings for Metal and related Cocoa frameworks.
Documentation
use crate::{
  obj::Object,
  foundation::NSString,
  PrivateMarker,
  metal::*
};

pub struct MTLCommandQueue(PrivateMarker);

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

impl MTLCommandQueue {
  pub unsafe fn command_buffer(&self) -> *mut MTLCommandBuffer {
    msg_send![self, commandBuffer]
  }

  pub unsafe fn set_label(&self, label: *mut NSString) {
    msg_send![self, setLabel:label]
  }
}