You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
Technique interface assumes it's an immutable thing. With shader composting, we might not want to pre-compile all the programs in advance (even though it would work now, and it's not a bad idea to prevent hitches on the way). If a technique wants to link shader programs, it also probably wants to cache them.
It's just a matter of changing self on Technique::compile, we can do it in a backward-compatible manner later.
The text was updated successfully, but these errors were encountered:
Another problem is that creating new programs on the fly requires &mut Factory, which is nowhere near. I need to ether change the interface to include it as a param (with &mut self), or find another way.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Technique
interface assumes it's an immutable thing. With shader composting, we might not want to pre-compile all the programs in advance (even though it would work now, and it's not a bad idea to prevent hitches on the way). If a technique wants to link shader programs, it also probably wants to cache them.It's just a matter of changing
self
onTechnique::compile
, we can do it in a backward-compatible manner later.The text was updated successfully, but these errors were encountered: