Skip to content

Commit e95f6d6

Browse files
authored
binding size fix (#7177)
1 parent 3447b3e commit e95f6d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-hal/src/auxil/mod.rs

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

5858
pub fn map_naga_stage(stage: naga::ShaderStage) -> wgt::ShaderStages {
5959
match stage {

0 commit comments

Comments
 (0)