Skip to content

Commit

Permalink
Fix repr of MTLLibraryType
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Sep 5, 2023
1 parent ae0bd16 commit cc9c0b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,15 +426,15 @@ impl FunctionConstantValuesRef {
/// Only available on (macos(11.0), ios(14.0))
///
/// See <https://developer.apple.com/documentation/metal/mtllibrarytype/>
#[repr(u64)]
#[repr(isize)]
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
pub enum MTLLibraryType {
Executable = 0,
Dynamic = 1,
}

unsafe impl Encode for MTLLibraryType {
const ENCODING: Encoding = u64::ENCODING;
const ENCODING: Encoding = isize::ENCODING;
}

/// See <https://developer.apple.com/documentation/metal/mtlcompileoptions/>
Expand Down

0 comments on commit cc9c0b6

Please sign in to comment.