Skip to content

Commit 2771097

Browse files
committed
Simplify
1 parent ab320d4 commit 2771097

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/zgpu.zig

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,16 +1125,15 @@ pub fn bufferEntry(
11251125
has_dynamic_offset: bool,
11261126
min_binding_size: u64,
11271127
) wgpu.BindGroupLayoutEntry {
1128-
const emscripten_bool: u32 = switch (has_dynamic_offset) {
1129-
true => 1,
1130-
false => 0,
1131-
};
11321128
return .{
11331129
.binding = binding,
11341130
.visibility = visibility,
11351131
.buffer = .{
11361132
.binding_type = binding_type,
1137-
.has_dynamic_offset = emscripten_bool,
1133+
.has_dynamic_offset = switch (has_dynamic_offset) {
1134+
true => 1,
1135+
false => 0,
1136+
},
11381137
.min_binding_size = min_binding_size,
11391138
},
11401139
};

0 commit comments

Comments
 (0)