Skip to content

Conversation

@bullno1
Copy link

@bullno1 bullno1 commented Feb 7, 2021

Use case: I'm writing a sprite batcher which fills a CPU vertex buffer every time a new sprite is drawn.
When the buffer is "full" or when there are no more sprite to draw, it will upload everything into a VBO and render.
To make partially filled buffer uploads more efficient, it is necessary to specify the length. srcOffset is a "might as well" add since it is part of bufferSubData.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant