// Copyright 2017 GFX developers // // Licensed under the Apache License, Version 2.0, or the MIT license , at your option. This file may not be // copied, modified, or distributed except according to those terms. extern crate metal_rs as metal; use metal::*; fn main() { let device = Device::system_default(); println!("Vendor: {:?}", device.vendor()); println!("Family: {:?}", device.family_name()); println!("Max threads per threadgroup: {:?}", device.max_threads_per_threadgroup()); println!("Integrated GPU: {:?}", device.is_low_power()); println!("Headless: {:?}", device.is_headless()); println!("D24S8: {:?}", device.d24_s8_supported()); println!("Indirect argument buffer: {:?}", device.argument_buffers_support()); }