mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
binding size fix (#7177)
This commit is contained in:
1 parent
3447b3e7b6
commit
e95f6d632c
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user