fix: lower QUERY_SET_MAX_QUERYS 8192 → 4096 (#6525)

This commit is contained in:
Erich Gubler 2024-11-12 09:38:19 -05:00 committed by GitHub
parent e8a8281203
commit 4311091cce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -133,6 +133,7 @@ By @ErichDonGubler in [#6456](https://github.com/gfx-rs/wgpu/pull/6456), [#6148]
- Ensure that `Features::TIMESTAMP_QUERY` is set when using timestamp writes in render and compute passes. By @ErichDonGubler in [#6497](https://github.com/gfx-rs/wgpu/pull/6497). - Ensure that `Features::TIMESTAMP_QUERY` is set when using timestamp writes in render and compute passes. By @ErichDonGubler in [#6497](https://github.com/gfx-rs/wgpu/pull/6497).
- Check for device mismatches when beginning render and compute passes. By @ErichDonGubler in [#6497](https://github.com/gfx-rs/wgpu/pull/6497). - Check for device mismatches when beginning render and compute passes. By @ErichDonGubler in [#6497](https://github.com/gfx-rs/wgpu/pull/6497).
- Lower `QUERY_SET_MAX_QUERIES` (and enforced limits) from 8192 to 4096 to match WebGPU spec. By @ErichDonGubler in [#6525](https://github.com/gfx-rs/wgpu/pull/6525).
## 23.0.0 (2024-10-25) ## 23.0.0 (2024-10-25)

View File

@ -91,7 +91,7 @@ pub const VERTEX_STRIDE_ALIGNMENT: BufferAddress = 4;
/// Alignment all push constants need /// Alignment all push constants need
pub const PUSH_CONSTANT_ALIGNMENT: u32 = 4; pub const PUSH_CONSTANT_ALIGNMENT: u32 = 4;
/// Maximum queries in a query set /// Maximum queries in a query set
pub const QUERY_SET_MAX_QUERIES: u32 = 8192; pub const QUERY_SET_MAX_QUERIES: u32 = 4096;
/// Size of a single piece of query data. /// Size of a single piece of query data.
pub const QUERY_SIZE: u32 = 8; pub const QUERY_SIZE: u32 = 8;