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.
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.