I successfully build a render to display one static mesh (8 mb of data) and implement carefully the synchronization (fences and semaphore) with the help of discord users.
Right now I'm using vkDrawIndexed to display the mesh.
Now, I would like to move in the direction to display many multiple objects with their respective model matrices.
I read different resources but I don't understand what direction to pick yet.
- Should the model matrices be allocated in a storage buffer or uniform buffer (I think it's more appropriate into a storage buffer)?
- How can I access the right objects' model matrix since I would like to batch the geometry together?
- I red many resources using vkDrawIndexedIndirect which allow to read/write and perform usefull technique like culling in gpu. However, any indirect command will result in a draw call, therefor "removing" the benefit of batching together different meshes?
There are a lot of stuff to consider as a beginner moving to intermediate.
Can you clarify me what direction to pick?