Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/not-fl3/nanoshredder
https://github.com/not-fl3/nanoshredder
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/not-fl3/nanoshredder
- Owner: not-fl3
- Created: 2023-02-23T05:38:47.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-02-23T05:39:38.000Z (over 1 year ago)
- Last Synced: 2024-08-04T03:03:44.634Z (3 months ago)
- Language: Rust
- Size: 206 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-quads - nanoshredder - an experimental fork of makepad's shader-compiler that compiles rust-like DSL into GLSL, Metal, and HLSL. (Libraries / Libraries: Other)
README
# NanoShredder
This code is [makepad](https://github.com/makepad/makepad)'s [shader compiler](https://github.com/makepad/makepad/tree/master/platform/shader_compiler), but _modified_.
During the modification shader-compiler became *worse*, not better. Most of live editing capabilities got lost, error reporting became worse, new bugs were introduced and maintanability/possibility to merge from upstream was lost.
Like the code was runned through a paper hredder and purely assembled back together, thus the project name.
![shadertoy](https://user-images.githubusercontent.com/910977/220827364-a39e005f-bbf3-4658-875a-7b2ec65f7ad0.gif)
*macroquad's [shadertoy](https://github.com/not-fl3/macroquad/blob/master/examples/shadertoy.rs) example*
`NanoShredder` can take a rust-like dsl and produce `glsl`, `metal` and `hlsl` shaders. Usage example: [basic.rs](/examples/basic.rs). It may(or may not) be evantually used as an optional cli/runtime tool to help miniquad based projects with shaders cross compilation.