[RFC] vulkan on webgpu native
Author: nihuiCreated Apr 8, 2025Updated Jul 30, 2026
bring webgpu native for webassembly, reuse vulkan code as much as possible
to be investigated
webassembly vulkan build system integration
build tint library
runtime comp➡️preprocess➡️spirv➡️wgsl
push constant to uniform binding
thin vulkan adaptor on webgpu native
webgpu native ci
resources
webgpu native implementation https://github.com/gfx-rs/wgpu-native https://github.com/google/dawn https://github.com/emscripten-core/emscripten/tree/main/system/include/webgpu
spir-v to wgsl https://dawn.googlesource.com/dawn/+/refs/heads/chromium/6530/docs/tint/spirv-reader-overview.md https://github.com/BabylonJS/twgsl
compatibility https://caniuse.com/webgpu
Source: Tencent/ncnn