Skip to content

Commit 98b9687

Browse files
minus1mscwfitzgerald
authored andcommitted
[v24] decrement binding size to match with max buffer (gfx-rs#7217)
1 parent 44d6477 commit 98b9687

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Bottom level categories:
4545
#### Bug Fixes
4646
- Fix GLES renderpass clears causing violation of `max_color_attachments` limit. By @adrian17 in [#6994](https://github.com/gfx-rs/wgpu/pull/6994).
4747
- Fix a possible deadlock within `Queue::write_texture`. By @metamuffin in [#7004](https://github.com/gfx-rs/wgpu/pull/7004)
48+
- 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)
4849

4950
### v24.0.1 (2025-01-22)
5051

wgpu-hal/src/auxil/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub mod db {
4444
/// Interestingly, the index itself can't reach that high, because the minimum
4545
/// element size is 4 bytes, but the compiler toolchain still computes the
4646
/// offset at some intermediate point, internally, as i32.
47-
pub const MAX_I32_BINDING_SIZE: u32 = 1 << 31;
47+
pub const MAX_I32_BINDING_SIZE: u32 = (1 << 31) - 1;
4848

4949
pub fn map_naga_stage(stage: naga::ShaderStage) -> wgt::ShaderStages {
5050
match stage {

0 commit comments

Comments
 (0)