Indexed Draw reports Index Count as Vertex Count
- Dominant language
- Go
- Stars
- 1.1k
- Forks
- 169
- PR merge metrics
- No merged PRs in 30d
Description
**Environment information:**
- AGI version: 2022-3.0.1:d7f82c3dda2df3d81e7b67157da8668c4242511c
- Host OS: macOS
If tracing on Android:
- Device model: S10e
- Android Version: Android 12
**Bug description**
I'm looking at vkCmdDrawIndexed calls and the vertexCount = 3 x primCount. That implies the draws are unwelded, but their not. There's a lot of vert sharing that is reflected in the Apple GPU capture. This data needs to be accurate, or else flagged that it's just an estimate.
I tried exporting a draw to Obj from the Geometry panel, and it was completely unwelded and had no vertices shared unlike the original model. So that made me question whether our data was welded at all. But Apple Gpu capture shows the shared indices.
**Reproduction steps**
Capture any scene with indexed draws, and look at the Performance panel. Note that the primitiveCount, Byte Count, etc are not correct for shared indices which is why we're using indexing in the first place.
**Stacktrace**
N/A
**Screenshots**

**Additional debugging information**
Contributor guide
Assessment
This issue has not been assessed yet.