aconstlink / motor

Software Framework for Audio/Visual/Interactive Real-Time Applications
MIT License
1 stars 0 forks source link

Add shader variables to the variable sets if recompiled #79

Open aconstlink opened 3 months ago

aconstlink commented 3 months ago

If new variables are added to the shader for the user, and the shader is recompiled, those variables should be present in the variable sets automatically. This could allow an application to display all variables and register a new variable immediately which helps the UI to display that new variable for editing.

This feature is only possible with an msl shader because that is the only way to recompile during run-time.

Opposed to that, it could also be possible to remove variables from the sets with those are not present in the shader.