Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RenderPass draw Calls with better Documentation and examples. #3852

Open
genusistimelord opened this issue Jun 9, 2023 · 0 comments
Labels
area: documentation Documentation for crate items, public or private help required We need community help to make this happen.

Comments

@genusistimelord
Copy link
Contributor

genusistimelord commented Jun 9, 2023

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.

@Wumpf Wumpf added help required We need community help to make this happen. area: documentation Documentation for crate items, public or private labels Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: documentation Documentation for crate items, public or private help required We need community help to make this happen.
Projects
None yet
Development

No branches or pull requests

2 participants