diff --git a/CHANGELOG.md b/CHANGELOG.md index 8036a3d933..4c7a2fd570 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,10 @@ Bottom level categories: - Clean up weak references to texture views and bind groups to prevent memory leaks. By @xiaopengli89 in [#5595](https://github.com/gfx-rs/wgpu/pull/5595). - Fix segfault on exit is queue & device are dropped before surface. By @sagudev in [#5640](https://github.com/gfx-rs/wgpu/pull/5640). +#### Metal + +- Fix unrecognized selector crash on iOS 12. By @vladasz in [#5744](https://github.com/gfx-rs/wgpu/pull/5744). + #### Vulkan - Fix enablement of subgroup ops extension on Vulkan devices that don't support Vulkan 1.3. By @cwfitzgerald in [#5624](https://github.com/gfx-rs/wgpu/pull/5624). diff --git a/wgpu-hal/src/metal/adapter.rs b/wgpu-hal/src/metal/adapter.rs index cddba472bd..8c890fdd2d 100644 --- a/wgpu-hal/src/metal/adapter.rs +++ b/wgpu-hal/src/metal/adapter.rs @@ -738,7 +738,9 @@ impl super::PrivateCapabilities { 4 }, // Per https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf - max_color_attachment_bytes_per_sample: if device.supports_family(MTLGPUFamily::Apple4) { + max_color_attachment_bytes_per_sample: if family_check + && device.supports_family(MTLGPUFamily::Apple4) + { 64 } else { 32