We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3447b3e commit e95f6d6Copy full SHA for e95f6d6
wgpu-hal/src/auxil/mod.rs
@@ -53,7 +53,7 @@ pub mod db {
53
/// Interestingly, the index itself can't reach that high, because the minimum
54
/// element size is 4 bytes, but the compiler toolchain still computes the
55
/// offset at some intermediate point, internally, as i32.
56
-pub const MAX_I32_BINDING_SIZE: u32 = 1 << 31;
+pub const MAX_I32_BINDING_SIZE: u32 = (1 << 31) - 1;
57
58
pub fn map_naga_stage(stage: naga::ShaderStage) -> wgt::ShaderStages {
59
match stage {
0 commit comments