gfx-rs / metal-rs

Rust bindings for Metal
Apache License 2.0
591 stars 112 forks source link

Add DeviceRef::{location, location_number} and MTLDeviceLocation #187

Closed burtonageo closed 4 years ago

burtonageo commented 4 years ago

Add the following APIs:

https://developer.apple.com/documentation/metal/mtldevice/3114006-locationnumber https://developer.apple.com/documentation/metal/mtldevice/3114005-location https://developer.apple.com/documentation/metal/mtldevicelocation

kvark commented 4 years ago

@chinedufn thank you for help reviewing the stuff! @burtonageo thanks for the PR!