profan / smidig

some kind of game engine, with accompanying test code
MIT License
0 stars 0 forks source link

Make typesafe shaders. #93

Open profan opened 8 years ago

profan commented 8 years ago

Right now we are just using strings and magic numbers for our shaders and shit, very prone to bugs if anything changes, lets make some type-safe shaders!

profan commented 8 years ago

In practice this means adding the possibility to verify at compile time that you're sending the appropriate thing to a given parameter, and that the parameter actually exists for the given shader.