binding size fix (#7177)

This commit is contained in:
minus1ms
2025-02-24 06:48:06 -08:00
committed by GitHub
parent 3447b3e7b6
commit e95f6d632c

View File

@@ -53,7 +53,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 {