Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibaryshnikov/shader-editor
WGSL shader editor for wgpu
https://github.com/ibaryshnikov/shader-editor
Last synced: 3 months ago
JSON representation
WGSL shader editor for wgpu
- Host: GitHub
- URL: https://github.com/ibaryshnikov/shader-editor
- Owner: ibaryshnikov
- License: mit
- Created: 2023-08-20T18:06:59.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-13T11:50:15.000Z (5 months ago)
- Last Synced: 2024-08-13T14:43:35.896Z (5 months ago)
- Language: Rust
- Size: 79.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shader editor
A minimal WebGPU application which can run your WGSL shaders.
Built with iced, providing the ability to add some UI on top
of the rendered image.## Motivation
The main goal is to provide a quick way to develop shaders with
a fast iteration loop. Inspired by tools like shadertoy.## Usage
Use `cargo run` to start
Editor:
- press `Update shader` or `Ctrl+R` to reload shaderFile watcher:
- edit `shader.wgsl` file, it will be reloaded on changes## Preview
## Roadmap
- [x] Watch shader file and do hot reload on changes
- [ ] Menu dialog to open shader files
- [x] Multiline text editor for shaders
- [ ] Syntax highlight
- [ ] Show error position inside editor## Details
The implementation is based on the following examples:
- iced [integration](https://github.com/iced-rs/iced/tree/master/examples/integration)
- wgpu [cube](https://github.com/gfx-rs/wgpu/tree/trunk/examples/cube)
and [hello-triangle](https://github.com/gfx-rs/wgpu/tree/trunk/examples/hello-triangle).Using [notify](https://github.com/notify-rs/notify)
for file watching.