WebGPU abstraction for browser and native targets (RhodoniteMBT).
Stability: This project is in early development. APIs and behavior may change without notice and are not production-ready yet. Prefer following the RhodoniteMBT repository for the latest status.
{
"name": "your-org/your-module",
"version": "0.1.0",
"deps": {
"emadurandal/rhodonite_webgpu": "0.1.7"
},
"source": "src"
}{
"deps": {
"emadurandal/rhodonite_webgpu": {
"path": "../RhodoniteMBT/moon/rhodonite_webgpu"
}
}
}import {
"emadurandal/rhodonite_webgpu/webgpu" @wgpu,
}
supported_targets = "+js+native"import {
"emadurandal/rhodonite_webgpu/webgpu" @wgpu,
}
supported_targets = "js"
options(
"is-main": true,
link: { "js": { "format": "esm" } },
overrides: [ "emadurandal/rhodonite_webgpu/webgpu_objects/js" ],
)import {
"emadurandal/rhodonite_webgpu/webgpu" @wgpu,
}
supported_targets = "native"
options(
"is-main": true,
overrides: [ "emadurandal/rhodonite_webgpu/webgpu_objects/native" ],
link: {
"native": {
"cc-flags": "-I/opt/homebrew/include -I/usr/local/include",
"cc-link-flags": "-L/opt/homebrew/lib -L/usr/local/lib -lSDL3"
},
},
)Install
Download zipWebGPU abstraction for browser and native targets (RhodoniteMBT).