1 2 3 4 5 6 7 8 9 10 11 12 13
use objc2_foundation::NSErrorDomain; unsafe extern "C" { /// Error domain constant for `MTLBinaryArchive` operations. /// /// Apple's documentation: `https://developer.apple.com/documentation/metal/mtlbinaryarchivedomain`. static MTLBinaryArchiveDomain: &'static NSErrorDomain; } /// Returns the error domain for `MTLBinaryArchive` operations. pub fn binary_archive_domain() -> String { unsafe { MTLBinaryArchiveDomain }.to_string() }