SiebenCorgie / jakar-engine

Formerly "Ori-Engine" is an hobby project of mine. Target is an Rust/Vulkan engine for games and visualization software.
MIT License
19 stars 0 forks source link

Write shader analyzer #15

Open SiebenCorgie opened 7 years ago

SiebenCorgie commented 7 years ago

It would be nice to load the shader at compile time to a string, analyse the "main shader" string and if a special keyword like #include is in there use the following name to replace this line with another string aka a shader part.

This way I could ensure that input structs are always the same size and the guy who writes the shader also has to write a shader just once.

However, atm the structs are set in a *.glsl file and the shader-writer has to copy them manually.