Skip to content

Commit

Permalink
Merge #3782
Browse files Browse the repository at this point in the history
3782: (macOS/iOS) readWriteTextureSupport is support on macOS 10.13+ / iOS 11.0 r=kvark a=xiaopengli89

Related to gfx-rs/wgpu#1665.


Co-authored-by: 李小鹏 <[email protected]>
  • Loading branch information
bors[bot] and xiaopengli89 authored Jul 20, 2021
2 parents 2e8a2ff + 2312ef3 commit 2c8db0b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/backend/metal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,17 @@ impl 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 {
metal::MTLReadWriteTextureTier::TierNone
}
} else if Self::version_at_least(major, minor, 11, 0) {
device.read_write_texture_support()
} else {
metal::MTLReadWriteTextureTier::TierNone
},
expose_line_mode: true,
resource_heaps: Self::supports_any(&device, RESOURCE_HEAP_SUPPORT),
argument_buffers: experiments.argument_buffers
Expand Down

0 comments on commit 2c8db0b

Please sign in to comment.