diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d9a2b9b8..6af62698e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -156,6 +156,7 @@ By @sagudev in [#10307](https://github.com/gfx-rs/wgpu/pull/10307). - Fix Naga's Metal backend crashing when a storage texture was used as a function argument. By @ErichDonGubler in [#9867](https://github.com/gfx-rs/wgpu/pull/9867). - Fix `max_task_workgroup_count` being misreported on pre-Apple7 devices. By @inner-daemons in [#10065](https://github.com/gfx-rs/wgpu/pull/10065). +- The value of the `max_binding_array_sampler_elements_per_shader_stage` on Apple7, Apple8, and Mac2 hardware is reduced from 1024 to 996, to match the latest Metal documentation. By @andyleiserson in [#10649](https://github.com/gfx-rs/wgpu/pull/10649). #### GLES diff --git a/wgpu-hal/src/metal/adapter.rs b/wgpu-hal/src/metal/adapter.rs index 2d089ca08..cd3f4fae9 100644 --- a/wgpu-hal/src/metal/adapter.rs +++ b/wgpu-hal/src/metal/adapter.rs @@ -923,7 +923,10 @@ impl super::CapabilitiesQuery { && (device.supportsFamily(MTLGPUFamily::Apple7) || device.supportsFamily(MTLGPUFamily::Mac2)) { - 1024 + // This was 1024 for Apple7, Apple8, and Mac2 in older versions of the document. + // In new versions of the document, it is 996 for Apple7 and Apple8, with Mac2 + // values no longer listed. + 996 } else if family_check && device.supportsFamily(MTLGPUFamily::Apple6) { 128 } else {