| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
A spinning cube rendered with dasVulkan, with a Dear ImGui control panel whose slider drives the rotation speed — and the ImGui UI is rasterized by a renderer backend written entirely in daslang (vulkan/vulkan_imgui_driver, now part of dasVulkan). No C++.
The point: a Dear ImGui renderer backend is just a draw-data replay driver. dasImgui exposes the whole ImDrawData surface to daslang (vertex/index buffers, draw commands, clip rects, the 1.92 texture queue), and dasVulkan exposes the GPU primitives, so the bridge is pure das.
Two opt-in modules ship with dasVulkan:
The example depends on two external modules — dasVulkan and dasImgui — declared in .das_package. Install them once with daspkg (clones + builds the native modules into modules/):
cd examples/vulkan_imgui_cube daslang ../../utils/daspkg/main.das -- install
Then run it — drag the slider to change the spin speed, press P to save a screenshot (screenshot.png, captured by vulkan_live), close the window to exit:
daslang -project_root . main.das
The UI is imgui_boost_v2, so under daslang-live every widget is drivable:
daslang-live -project_root . main.das
curl -X POST -d '{"name":"imgui_force_set","args":{"target":"CUBE_WIN/SPEED","value":4.0}}' localhost:9090/command
curl -X POST -d '{"name":"imgui_snapshot"}' localhost:9090/command
curl -X POST -d '{"name":"screenshot","args":{"file":"shot.png"}}' localhost:9090/command
| Back | FazBrowse Home | New Git URL |