vrust 0.0.1

VRust game engine
1
2
3
4
5
6
7
8
9
10
11
12
use super::{Id, NSString};

#[link(name = "MetalKit", kind = "framework")]
extern "C" {
    pub static MTKTextureLoaderOptionTextureUsage: NSString;
    pub static MTKTextureLoaderOptionTextureStorageMode: NSString;
    fn MTKModelIOVertexDescriptorFromMetal(vertex_descriptor: Id) -> Id;
}

pub fn model_io_vertex_descriptor_from_metal(vertex_descriptor: Id) -> Id {
    unsafe { MTKModelIOVertexDescriptorFromMetal(vertex_descriptor) }
}