-
Notifications
You must be signed in to change notification settings - Fork 124
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
Vulkan dump resources: Fix in vertex buffer size calculation #1915
base: dev
Are you sure you want to change the base?
Vulkan dump resources: Fix in vertex buffer size calculation #1915
Conversation
CI gfxreconstruct build queued with queue ID 322779. |
CI gfxreconstruct build # 5543 running. |
CI gfxreconstruct build # 5543 passed. |
I have tested this build, but now the vertices points I get back for one draw call is huge.
I am still getting back clusters of position data that does not match the index for different draw calls so the mesh looks the same. I just have bigger vertices data. |
It seems like the current implementation only adds the vertex_offset to the greatest index, which is incomplete.
This only considers the greatest vertex index, which assumes the vertex range starts at 0. So something like |
I did confirm after adjusting my parser directly with the vertex_offset, my mesh does look correct. |
Great. |
No, what I have tested is the actual data that was pulled from this pr, I have parsed the same draw call with adding vertex_offset directly to that same draw call. Which means that the draw call contains all the correct data, but with additional unused data for that draw call.
This is what I am assuming to be the issue with current pr, which is only accounting vertex_offset for greatest_vertex_index only. For example, greatest index: 7 + 2 = 9 which incorrectly counts the range from 0 to 9. If we adjust both smallest and greatest indices by the vertex_offset, smallest index: 3+(2) = 5 now calculating which shows range 0 to 4. This would be the correct vertex_count, representing the exact number of vertices used for that draw call. |
OK I think I understand your point which makes sense. I forced pushed some change to incorporate the logic you describe. |
b681a81
to
9445601
Compare
CI gfxreconstruct build queued with queue ID 328500. |
CI gfxreconstruct build # 5624 running. |
CI gfxreconstruct build # 5624 passed. |
No description provided.