mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 00:41:07 +01:00
fix: readWriteTextureSupport is support on macOS 10.13+ / iOS 11.0
This commit is contained in:
1 parent
e1392a3525
commit
6e63964e51
1 file changed
+11
-1
@@ -573,7 +573,17 @@ impl super::PrivateCapabilities {
|
||||
MTLLanguageVersion::V1_0
|
||||
},
|
||||
exposed_queues: 1,
|
||||
read_write_texture_tier: device.read_write_texture_support(),
|
||||
read_write_texture_tier: if os_is_mac {
|
||||
if Self::version_at_least(major, minor, 10, 13) {
|
||||
device.read_write_texture_support()
|
||||
} else {
|
||||
mtl::MTLReadWriteTextureTier::TierNone
|
||||
}
|
||||
} else if Self::version_at_least(major, minor, 11, 0) {
|
||||
device.read_write_texture_support()
|
||||
} else {
|
||||
mtl::MTLReadWriteTextureTier::TierNone
|
||||
},
|
||||
resource_heaps: Self::supports_any(&device, RESOURCE_HEAP_SUPPORT),
|
||||
argument_buffers: Self::supports_any(&device, ARGUMENT_BUFFER_SUPPORT),
|
||||
shared_textures: !os_is_mac,
|
||||
|
||||
Reference in new issue
Block a user