rate up
0
rate down
I'm confused ! (Constant buffer and buffers)
I just want to ask, what is Constant buffer and regular buffer, i kinda know what that means, but i\'m not 100% sure, so, i would be thankfull if someone answers!
Chosen Answer
rate up
0
rate down
Buffers are just a chunk of temporary memory. they are used when moving data from one location to another. Constant buffer is just a type of buffer. We create a constant buffer to store data we want to send to the shaders. Its called a buffer because it doesn\'t stay in memory, its only there while we fill it up and send it to the GPU vertex and index buffers are the same. we fill them up, then send them to the shaders. once we send them, they can be emptied since the gpu now has them in the gpu\'s memory. if you plan on using the same data again, you could keep it around, but in the case you want to keep it around, you would normally store the data somewhere else, and when you want to send the data to the shaders, you would create a buffer for it, send it, then clear the buffer again
Sign in to answer!