[v24] decrement binding size to match with max buffer (#7217)

This commit is contained in:
minus1ms authored and Connor Fitzgerald committed 2025-02-26 21:01:07 -05:00
1 parent 44d6477c87
commit 98b9687754
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -45,6 +45,7 @@ Bottom level categories:
#### Bug Fixes
- Fix GLES renderpass clears causing violation of `max_color_attachments` limit. By @adrian17 in [#6994](https://github.com/gfx-rs/wgpu/pull/6994).
- Fix a possible deadlock within `Queue::write_texture`. By @metamuffin in [#7004](https://github.com/gfx-rs/wgpu/pull/7004)
- Decrement `max_storage_buffer_binding_size` by 1 to match `max_buffer_size`. By @minus1ms in [#7217](https://github.com/gfx-rs/wgpu/pull/7217)
### v24.0.1 (2025-01-22)
+1 -1
View File
@@ -44,7 +44,7 @@ pub mod db {
/// Interestingly, the index itself can't reach that high, because the minimum
/// element size is 4 bytes, but the compiler toolchain still computes the
/// offset at some intermediate point, internally, as i32.
pub const MAX_I32_BINDING_SIZE: u32 = 1 << 31;
pub const MAX_I32_BINDING_SIZE: u32 = (1 << 31) - 1;
pub fn map_naga_stage(stage: naga::ShaderStage) -> wgt::ShaderStages {
match stage {