gfx-rs/gfx-rs — pull request #316 by sectopod (2014-08-30 04:13:07+00:00)
Title: [WIP] State caching

Closes #315
Closes #164

TODO:
- [X] device reset
- [X] device direct GL access
- [X] render target caching (was already there mostly)
- [X] draw state caching
- [ ] mesh attribute caching
- [ ] program caching

Future goals:
* re-use textures/blocks by tracking their bound points

cc @bvssvni @eddyb @kvark