Update RenderPass draw Calls with better Documentation and examples. #3852
Labels
area: documentation
Documentation for crate items, public or private
help required
We need community help to make this happen.
So the issue is Some special draw calls like draw_indexed does not really give full details about what parameters do what exactly.
So for this case draw_indexed Would Set the index Array range via indices and then the base_vertex which I had to find out in the chat which increments via a offset for the indices and then instances which is a range of the instance being used for the vertex's. It also leaves out important information. For example the indices are used to determine what vertex to load so if we set 0,1,2,0,2,3 and then 4,5,6,4,5,7
this would get the appropriate vertex's from the buffer based on their Count or Byte's / stride to get the count.
Also with the base_vertex being used as a offset this would increment the index's for me automatically so for 2 objects this could be
0,1,2,0,2,3 and 0,1,2,0,2,3 for the 2nd object. then I set base_vertex to 0 for the first indices and set it to 4 for the 2nd indices which should if i understood them correctly update them internally to 0,1,2,0,2,3 and then 4,5,6,4,5,7.
Going through and adding this specific type of information to draw calls and other functions could be helpful.
The text was updated successfully, but these errors were encountered: