aconstlink / motor

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

Updating msl objects through shader changes #64

Closed aconstlink closed 3 months ago

aconstlink commented 3 months ago

If shaders are re-uploaded to the rendering backends, msl_objects need to be tracked too so any change in variables or future features can be reflected back to the user via the msl_object.

If a msl_object is used in multiple windows the last rendering backend will fill the msl_object. There is no way to sync the object with multiple backends.

The main reason for requiring the msl_object to be stored in the backend too is to use it reconnecting variables and geometry objects if libraries are recompiled which affect render objects created by msl_objects. Those additional data can not be recovered and reflected back to the user right now.