mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
fix(metal): Update sampler binding array limit from Metal docs (#10649)
This commit is contained in:
1 parent
c0c938bb0b
commit
09a0eba3aa
2 files changed
+5
-1
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user