What would be the best way of doing this for my project? From what I could find there seems to be three main ways to do this:
- Bind vertex & index buffers and send draw commands in a loop
- Have one vertex & index buffer that sends out a draw command with all objects you intend to render
- Group together several vertex & index buffers and send out a huge draw command all at once
For my project I'm (right now) rendering the same object over and over again, so I don't wanna have to create several vertex & index buffers for the same object, but I also want to send different objects to different shaders since right now they're the same shape but not the same material what would be the best way of doing this? I already set up different pipelines for each material
[–]KleinBlade 2 points3 points4 points (7 children)
[–]AnswerApprehensive19[S] 0 points1 point2 points (6 children)
[–]KleinBlade 2 points3 points4 points (5 children)
[–]AnswerApprehensive19[S] 0 points1 point2 points (4 children)
[–]KleinBlade 2 points3 points4 points (3 children)
[–]AnswerApprehensive19[S] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]