Tip
For WebAssembly builds (WebGL2/WebGPU), add --arch wasm32-unknown-emscripten flag (requires LDC2)
Note
dub by default builds & runs the application.
For build-only, use dub build instead.
Available examples:
- blend
- bufferoffsets
- clear
- cube
- debugtext
- droptest
- imgui
- instancing
- instancingcompute
- nuklear
- saudio
- sglcontext
- sglpoints
- triangle
Build command format:
dub :[example] -c [native|vulkan|wasm|wgpu] -b [debug|release|release-nobounds|release-betterc]