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 ab320d4 commit 2771097Copy full SHA for 2771097
src/zgpu.zig
@@ -1125,16 +1125,15 @@ pub fn bufferEntry(
1125
has_dynamic_offset: bool,
1126
min_binding_size: u64,
1127
) wgpu.BindGroupLayoutEntry {
1128
- const emscripten_bool: u32 = switch (has_dynamic_offset) {
1129
- true => 1,
1130
- false => 0,
1131
- };
1132
return .{
1133
.binding = binding,
1134
.visibility = visibility,
1135
.buffer = .{
1136
.binding_type = binding_type,
1137
- .has_dynamic_offset = emscripten_bool,
+ .has_dynamic_offset = switch (has_dynamic_offset) {
+ true => 1,
+ false => 0,
+ },
1138
.min_binding_size = min_binding_size,
1139
},
1140
};
0 commit comments