vg-renderer
vg-renderer copied to clipboard
feat: use bgfx::TransientVertexBuffer / TransientIndexBuffer
Opening this as a draft, this is @johntm's original change to vg-renderer to use bgfx transient buffers. Will work with John to write a better PR description
I'd suggest putting all those changes inside preprocessor blocks (e.g. #if VG_CONFIG_USE_TRANSIENT_BUFFERS) in order not to break existing functionality. You might also want to hide (#if !VG_CONFIG_USE_TRANSIENT_BUFFERS) GPUVertexBuffer and GPUIndexBuffer and all code which use them.