apple-metal 0.6.0

Safe Rust bindings for Apple's Metal framework — devices, resources, command encoding, advanced GPU objects, and IOSurface interop on macOS, backed by a Swift bridge
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use core::ffi::c_void;

extern "C" {
    pub fn am_device_new_render_pipeline_state(
        device_handle: *mut c_void,
        vertex_handle: *mut c_void,
        fragment_handle: *mut c_void,
        color_pixel_format: usize,
        sample_count: usize,
        out_error_message: *mut *mut core::ffi::c_char,
    ) -> *mut c_void;

    pub fn am_object_copy_label(handle: *mut c_void) -> *mut core::ffi::c_char;
}