Closed DethRaid closed 1 year ago
I've learned more. Apparently when the validation layer reports "descriptor index n" it isn't referring to the descriptor set or the descriptor binding. Instead, it's referring to an index in an array of descriptors
See Discord messages starting here https://discord.com/channels/427551838099996672/427558253275250718/1093924583700189345 for some more info
I had expected that the validation layer would tell me which descriptor set and/or which descriptor binding had the error. Instead, that information appears to be completely absent
I'd like to change this Issue to request that the GPU assisted validation messages tell me which descriptor set and binding encountered the error
Environment:
Describe the Issue
The GPU assisted validation's error message says I have an error at "descriptor index 0"
Expected behavior
The GPU assisted validation layer should say that I have an error at "descriptor set=0 binding=1"
Valid Usage ID
Additional context
I enabled GPU assisted validation on my project and encountered the above error. The error states "descriptor index 0 access out of bounds". This was very confusing - I only have one descriptor set for this dispatch, and descriptor index 0 in this set has a size of 1179648! It appeared that the GPU assisted validation layer was simply wrong
After some debugging I realized that it was referring to descriptor index 1 inside of descriptor set 0. This was not clear at all from the error. The error message should clearly state which descriptor in which set had the out-of-bounds access, or at least be clear that it's talking about descriptor sets and not descriptors themselves
Additional context in the Vulkan Discord server: https://discord.com/channels/427551838099996672/427558253275250718/1088511714477232129