Index buffers are a way to reduce the amount of gpu memory required to store a model’s attribute data by allowing duplicate vertex data to be removed from the Vertex Buffer. An Index Buffer acts like an array of pointers into the Vertex Buffer, allowing vertex data to be reused by multiple triangles during rendering.
A staging buffer is used in the process of transferring data from the host (cpu) to the device (gpu), and is a temporary location to hold data so that it can then be transferred to more optimal (faster) device memory.
In this tutorial we update the model class to support index buffers, and use staging buffers to transfer the model data to device optimal memory.
This video is primarily based off of these two resources:
[ Ссылка ]
[ Ссылка ]
00:00 - Index Buffers explained
02:24 - Updating the model header
04:08 - Updating the model implementation
09:05 - Updating createCubeModel()
09:45 - Testing the index buffer
10:48 - Staging Buffers explained
12:05 - Staging Buffer for createVertexBuffers()
15:00 - Staging Buffer for createIndexBuffers()
16:10 - When to use a staging buffer?
** View File Changes **
[ Ссылка ]
** View Tutorial Github **
[ Ссылка ]
** Updated createCubeMode() paste bin **
[ Ссылка ]
** View playlist **
[ Ссылка ]
** Some other resources **
Vulkan spec - [ Ссылка ]
Apple Model - [ Ссылка ]
My github for this series - [ Ссылка ]
Official vulkan samples - [ Ссылка ]
“Vulkan and the Vulkan logo are registered trademarks of the Khronos Group Inc.”
Ещё видео!