metal-rs
metal-rs copied to clipboard
Byte data arguments
We are currently not consistent w.r.t. receiving &[u8]
versus bare pointer + size. The former is a safer API but requires the user (sometimes) to convert whatever they have to a slice of u8
. The former is tricky, since our methods are not marked as unsafe...
Given that we already use &str
rather than NSString
everywhere I think we're past being a -sys crate, so slices are preferable IMO 👍