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 2771097 commit 4e03f91Copy full SHA for 4e03f91
src/wgpu.zig
@@ -138,10 +138,17 @@ pub const BufferMapAsyncStatus = enum(u32) {
138
size_out_of_range = 0x00000008,
139
};
140
141
-pub const BufferMapState = enum(u32) {
142
- unmapped = 0x00000000,
143
- pending = 0x00000001,
144
- mapped = 0x00000002,
+pub const BufferMapState = switch (emscripten) {
+ true => enum(u32) {
+ unmapped = 0x00000001,
+ pending = 0x00000002,
145
+ mapped = 0x00000003,
146
+ },
147
+ false => enum(u32) {
148
+ unmapped = 0x00000000,
149
+ pending = 0x00000001,
150
+ mapped = 0x00000002,
151
152
153
154
pub const CompareFunction = enum(u32) {
0 commit comments