Skip to content

what's good usecase for TransientBuffer? #2542

Answered by bkaradzic
niu2x asked this question in Q&A
Discussion options

You must be logged in to vote

First definition of transient:

passing especially quickly into and out of existence

https://www.merriam-webster.com/dictionary/transient

It's special buffer type for index/vertex buffers that are changing every frame. It's there as convenience as fire&forget, so you don't have to manually manage buffers that are changing all the time. Also, as we know what's life-time of these buffers, it allows some internal optimizations.

Transient - changes every frame
Dynamic - changes sometimes (if you don't pass data on creation, buffer/texture is dynamic)
Static - never changes (if you pass data to any creation function, it's assumed that buffer/texture is immutable)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@niu2x
Comment options

Answer selected by niu2x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants