mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 16:31:11 +01:00
Re-add support for memoryless storage on A7 (#8725)
This commit is contained in:
1 parent
01578c6234
commit
42582cdb1b
1 file changed
+10
-1
@@ -960,8 +960,17 @@ impl super::PrivateCapabilities {
|
||||
|| (version.at_least((10, 15), (14, 0), (16, 0), (1, 0), os_type)
|
||||
&& device.supports_shader_barycentric_coordinates()),
|
||||
// https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf#page=3
|
||||
// See https://github.com/gfx-rs/wgpu/pull/8725 for more details
|
||||
supports_memoryless_storage: metal4
|
||||
|| (family_check && device.supports_family(MTLGPUFamily::Apple2)),
|
||||
|| if family_check {
|
||||
// Apple A7 (MTLGPUFamily::Apple1) has been tested to have support.
|
||||
device.supports_family(MTLGPUFamily::Apple1)
|
||||
} else {
|
||||
// macOS: Always rely on family check
|
||||
// iOS/tvOS: API added in 10.0
|
||||
// visionOS: Always rely on family check
|
||||
version.at_least(OS_NOT_SUPPORT, (10, 0), (10, 0), OS_NOT_SUPPORT, os_type)
|
||||
},
|
||||
supported_vertex_amplification_factor: {
|
||||
let mut factor = 1;
|
||||
// https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf#page=8
|
||||
|
||||
Reference in new issue
Block a user