objc2-metal 0.2.2

Bindings to the Metal framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![cfg(commented_out)]
use crate::MTLDevice;

pub trait MTLDeviceExtension {
    // pub fn system_default() -> Option<Self> {
    //     MTLCreateSystemDefaultDevice()
    // }
    //
    // pub fn all() -> Retained<NSArray<Self>> {
    //     #[cfg(target_os = "macos")]
    //     MTLCopyAllDevices()
    //     #[cfg(not(target_os = "macos"))]
    //     NSArray::from(MTLCreateSystemDefaultDevice())
    // }
}

impl<P: MTLDevice> MTLDeviceExtension for P {}