cobin/metal/
mtl_command_queue.rs

1use crate::{
2  obj::Object,
3  foundation::NSString,
4  PrivateMarker,
5  metal::*
6};
7
8pub struct MTLCommandQueue(PrivateMarker);
9
10impl Object for MTLCommandQueue {}
11unsafe impl objc::Message for MTLCommandQueue {}
12
13impl MTLCommandQueue {
14  pub unsafe fn command_buffer(&self) -> *mut MTLCommandBuffer {
15    msg_send![self, commandBuffer]
16  }
17
18  pub unsafe fn set_label(&self, label: *mut NSString) {
19    msg_send![self, setLabel:label]
20  }
21}