jdryg / vg-renderer

A vector graphics renderer for bgfx, based on ideas from NanoVG and ImDrawList (Dear ImGUI)
BSD 2-Clause "Simplified" License
503 stars 55 forks source link

Instancing #21

Closed kariem2k closed 3 years ago

kariem2k commented 3 years ago

Hello,

I was wondering if I can use hardware instancing somehow with vg-rendering?

Thanks

jdryg commented 3 years ago

Hi,

Unfortunately no, hardware instancing isn't supported. All commands that share the same state are batched to a single draw call by merging all geometries into a single vb/ib.

kariem2k commented 3 years ago

Thank you very much for the quick answer.