Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riwanou/wgpu_lua_fun
Wgpu rendering with lua embedding.
https://github.com/riwanou/wgpu_lua_fun
Last synced: 2 days ago
JSON representation
Wgpu rendering with lua embedding.
- Host: GitHub
- URL: https://github.com/riwanou/wgpu_lua_fun
- Owner: riwanou
- Created: 2024-08-24T14:50:09.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-09-06T19:42:59.000Z (4 months ago)
- Last Synced: 2024-11-11T19:43:11.955Z (2 months ago)
- Language: Rust
- Size: 6.82 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WGPU with Lua
Simple lua embedding with wgpu to render stuffs.
## Luau
Roblox [Luau](https://luau.org) is used to get native type annotations.
Type declarations can be found in `definition.d.lua`, to make it work with [luau-lsp](https://github.com/JohnnyMorganz/luau-lsp), add `--definitions=definition.d.lua` to the lsp args.## Xcode debugging with the graphic debugger
- Create a new XCODE project, select external build tool, add the executable (more details in the [wgpu docs](https://github.com/gfx-rs/wgpu/wiki/Debugging-with-Xcode))
- Edit scheme -> env variables
- `DYLD_LIBRARY_PATH=rustc --print target-libdir`: rpath issues
- `IDEPreferLogStreaming=YES`: logs
- `NOT_ON_TOP=1`: do not show window on top
- Edit scheme -> Options -> Use custom working directory -> project directory