Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple vertex streams support #223

Closed
jamesmintram opened this issue Dec 30, 2014 · 3 comments
Closed

Multiple vertex streams support #223

jamesmintram opened this issue Dec 30, 2014 · 3 comments

Comments

@jamesmintram
Copy link

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?

@bkaradzic
Copy link
Owner

It's unsupported right now, but I plan to add vertex streams.

@bkaradzic bkaradzic changed the title Possible to submit multiple buffers? Multiple vertex streams support Jan 2, 2015
@lorenzogatti
Copy link

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.

@bkaradzic
Copy link
Owner

Added support a while back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants