Skip to content

computer-graphics-tools/mtl-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mtl-rs

Rust bindings for Apple's Metal API, built on the modern objc2 ecosystem.

Features

  • Comprehensive Metal API coverage
  • MTL4 (Metal 4) API bindings
  • Built on objc2 for safe and modern Objective-C interop
  • Supports macOS and iOS

Installation

Add to your Cargo.toml:

[dependencies]
mtl-rs = "0.1.1"

Usage

use metal::{create_system_default_device, MTLDevice};

fn main() {
    let device = create_system_default_device()
        .expect("No Metal device found");

    println!("Device: {:?}", device.name());
    println!("Unified memory: {}", device.has_unified_memory());
    println!("Max threadgroup size: {:?}", device.max_threads_per_threadgroup());
}

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages