This is achieved with the traits in dotrix_core::providers::*
Add a reload system to signal when an asset needs to be rebound to the pipeline.
There are two kinds of reload, ReloadKind::Update and ReloadKind::Reload the first is when data was updated but not the length of the buffer or dimensions of the texture, the second is when these are changed and when a rebind is required.
This rebind is done automatically during a bind of the pipeline. Which is now a no-op if no rebind has been signalled as required. We can therefore just bind everyframe and let the underlying system handle checking for the need to rebinding.
Also a dotrix_derive that adds derive macros to help add reloadable and other traits
Comments are requested as this is kinda far reaching in its effects and we can maybe discuss alternative methods and techniques
Depends on #170
This is a bit of a bigger PR that adds the following:
instead of this:
dotrix_core::providers::*
ReloadKind::Update
andReloadKind::Reload
the first is when data was updated but not the length of the buffer or dimensions of the texture, the second is when these are changed and when a rebind is required.bind
of the pipeline. Which is now a no-op if no rebind has been signalled as required. We can therefore just bind everyframe and let the underlying system handle checking for the need to rebinding.dotrix_derive
that adds derive macros to help add reloadable and other traitsComments are requested as this is kinda far reaching in its effects and we can maybe discuss alternative methods and techniques