gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 547 forks source link

Support multi-draw calls #1128

Open kvark opened 7 years ago

kvark commented 7 years ago

For GL: https://www.khronos.org/opengl/wiki/Vertex_Rendering#Multi-Draw

kvark commented 7 years ago

As @nical suggested, we could record those calls automatically by the backend side. We know when the pipeline/shaders change, and we know if multi-draw is supported, so this should not be difficult to achieve. Bonus is - less API surface.