For example, one implementation wants query camera position in fragment stage, which should be provided by camera uniform before. However, the camera uniform register site doesn't know if any implementation would use the camera position in the fragment stage. If we register it blindly, we maybe use an extra fragment uniform slot.
Proposed solution
implement some kind of query hook mechanism to allow register side register hooks instead of baked dependencies, and defer the dependency creation time to when the query side is queried.
Background
For example, one implementation wants query camera position in fragment stage, which should be provided by camera uniform before. However, the camera uniform register site doesn't know if any implementation would use the camera position in the fragment stage. If we register it blindly, we maybe use an extra fragment uniform slot.
Proposed solution
implement some kind of query hook mechanism to allow register side register hooks instead of baked dependencies, and defer the dependency creation time to when the query side is queried.