When generating with fake scoped enums disabled, using the latest emscripten webgpu.h, I see multiple compilation errors from the WEBGPU_CPP_IMPLEMENTATION section of webgpu.h.
To generate:
python3 ./generate.py -u webgpu.h -t emscripten/webgpu.template.hpp -o webgpu.hpp -d defaults.txt -d extra-defaults.txt --no-fake-scoped-enums
When building, I get compilation errors such as:
webgpu.hpp:1341:16: fatal error: assigning to 'WGPUBackendType' from incompatible type 'wgpu::BackendType'
1341 | backendType = BackendType::Undefined;
| ^~~~~~~~~~~~~~~~~~~~~~
These could be resolved with a change like backendType = static_cast<WGPUBackendType>(BackendType::Undefined).
When generating with fake scoped enums disabled, using the latest emscripten webgpu.h, I see multiple compilation errors from the
WEBGPU_CPP_IMPLEMENTATIONsection of webgpu.h.To generate:
When building, I get compilation errors such as:
These could be resolved with a change like
backendType = static_cast<WGPUBackendType>(BackendType::Undefined).