Closed adaxiik closed 4 months ago
This is expected behavior. You can't modify data until it's consumed (by bgfx::frame
call).
You should not open issues like this, rather ask question in Discord and Discussions.
thanks for the clarification! I will definitely join the discord community :100:
Also check TransientVertex/IndexBuffers
, it's better match for code in repro.
Transient buffers are when buffer life time is 1 frame. Dynamic buffers are more for things that last more than 1 frame but it's not completely static.
Describe the bug Dynamic vertex buffer is getting overwritten by update after being submitted and I'm not sure if its expected/wanted behavior.
To Reproduce Steps to reproduce the behavior:
Expected behavior I expected to see both of the submitted meshes at different positions
Repro I modified example 01 to demonstrate the bug
Additional context