simontaylor81 / Syrup

Shader Rapid Prototyping
MIT License
0 stars 0 forks source link

Lazy shader compilation #13

Closed simontaylor81 closed 8 years ago

simontaylor81 commented 8 years ago

Instead of compiling shaders as soon as the script asks for one, just return a handle and defer until later.

Advantages:

simontaylor81 commented 8 years ago

Done in 110da9b66c03cf02af427c34ebaf6d1f47965f51. Not going to do compilation of only used shaders because it gets messy with user properties -- what if the used subset changes frame-to-frame?