mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
Fix int64 metal detection (#5604)
This commit is contained in:
parent
671a2a8227
commit
34aab34c00
@ -817,6 +817,10 @@ impl super::PrivateCapabilities {
|
||||
&& (device.supports_family(MTLGPUFamily::Metal3)
|
||||
|| device.supports_family(MTLGPUFamily::Mac2)
|
||||
|| device.supports_family(MTLGPUFamily::Apple7)),
|
||||
// https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf#page=5
|
||||
int64: family_check
|
||||
&& (device.supports_family(MTLGPUFamily::Apple3)
|
||||
|| device.supports_family(MTLGPUFamily::Metal3)),
|
||||
}
|
||||
}
|
||||
|
||||
@ -890,7 +894,7 @@ impl super::PrivateCapabilities {
|
||||
}
|
||||
features.set(
|
||||
F::SHADER_INT64,
|
||||
self.msl_version >= MTLLanguageVersion::V2_3,
|
||||
self.int64 && self.msl_version >= MTLLanguageVersion::V2_3,
|
||||
);
|
||||
|
||||
features.set(
|
||||
|
@ -270,6 +270,7 @@ struct PrivateCapabilities {
|
||||
has_unified_memory: Option<bool>,
|
||||
timestamp_query_support: TimestampQuerySupport,
|
||||
supports_simd_scoped_operations: bool,
|
||||
int64: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
Loading…
Reference in New Issue
Block a user