You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have per vertex data which I would like to pass to the vertex shader by using more than one vertex buffer. (changing the memory layout to interleave this with the existing vertex data is not a great option)
Is this possible with BGFX? If so, what is the best way to do it?
The text was updated successfully, but these errors were encountered:
What's the recommended way to organize and update vertex buffers with data that changes at different times?
For example, a deformable mesh could be defined with a constant index buffer (no problem), similarly constant vertex colors (or texture coordinates), and animated vertex positions that change every frame.
Colors should be in a static buffer, positions should be in a dynamic buffer, but if they have to be in the same buffer, presumably a dynamic buffer, memory bandwidth is going to be wasted refreshing actually unchanging vertex colors.
I have per vertex data which I would like to pass to the vertex shader by using more than one vertex buffer. (changing the memory layout to interleave this with the existing vertex data is not a great option)
Is this possible with BGFX? If so, what is the best way to do it?
The text was updated successfully, but these errors were encountered: