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 aee888e commit ab320d4Copy full SHA for ab320d4
src/zgpu.zig
@@ -1122,15 +1122,19 @@ pub fn bufferEntry(
1122
binding: u32,
1123
visibility: wgpu.ShaderStage,
1124
binding_type: wgpu.BufferBindingType,
1125
- has_dynamic_offset: u32,
+ 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,
- .has_dynamic_offset = has_dynamic_offset,
1137
+ .has_dynamic_offset = emscripten_bool,
1138
.min_binding_size = min_binding_size,
1139
},
1140
};
0 commit comments