Skip to content

Commit

Permalink
[WebGPU] Fix wrong return values for wgpuBufferGetMapState (emscripte…
Browse files Browse the repository at this point in the history
  • Loading branch information
pkomon-tgm authored Aug 12, 2024
1 parent cf8a0d0 commit 88c23a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/library_webgpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ var LibraryWebGPU = {

// Map from enum string back to enum number, for callbacks.
Int_BufferMapState: {
'unmapped': 0,
'pending': 1,
'mapped': 2,
'unmapped': 1,
'pending': 2,
'mapped': 3,
},
Int_CompilationMessageType : {
'error': 0,
Expand Down

0 comments on commit 88c23a7

Please sign in to comment.