671ebdfa8f
Now that most of the complicated Context3D methods have been implemented, we can simplify the overall design. Instead of queueing up commands and having `present` execute them in a loop, we can execute each command immediately. The key insight is that a `RenderPass` is only needed for `DrawTriangles`, so we don't have to store it in `Context3D` and deal with complicated lifetime issues. The old behavior gave us implicit double-buffering behavior, since nothing would get rendered until a 'present' call. Now that a 'drawTriangles' call will immediately submit a draw command, we need to implement actual double buffering. This is done in the next commit. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |