Open GeraldKimmersdorfer opened 4 months ago
Seems to be an emscripten bug where wgpuBufferGetMapState
's return values don't align with WGPUBufferMapState
enum values.
See https://github.com/emscripten-core/emscripten/issues/22300
Update: Our PR was merged three weeks ago and is included in the emscripten 3.1.65 (released two weeks ago)
Therefore, this issue will be fixed when we update the emscripten version again.
On the web
wgpuBufferGetMapState
seems to return0
in any state.0
is not even a valid option forWGPUBufferMapState
.On native the function returns the appropriate values. Maybe an emscripten bug?
I'll introduce a manual flag in our RawBuffer-Implementation which we can then use instead.
Originally posted by @GeraldKimmersdorfer in https://github.com/weBIGeo/webigeo/issues/26#issuecomment-2259959378