KhronosGroup / KhronosGroup/Vulkan-Docs
Spec Clarification: Behavior of index buffers with robustBufferAccess2
- Dominant language
- JavaScript
- Stars
- 3.3k
- Forks
- 549
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 2
Description
The spec specifies this for indexed draws when `robustBufferAccess2` is enabled:
```
VUID-vkCmdDrawIndexed-robustBufferAccess2-08798
If the robustBufferAccess2 feature is not enabled, (indexSize × (firstIndex + indexCount))
must be less than or equal to the size of the bound index buffer range, with indexSize
being based on the type specified by indexType, and the other parameters sourced from
this command
```
However, I don't see any mention of index buffers in the [Robust Buffer Access 2](https://docs.vulkan.org/spec/latest/chapters/shaders.html#shaders-robust-buffer-access2) section. I assume the intent though would be that index buffers behave robustly, and CTS tests for this, but I would assume then it should be properly specified.
Additionally, there is no mention of index buffers for `VK_EXT_pipeline_robustness`. Do pipeline robustness flags (vertex input?) affect index buffer robustness, or is it only controllable with the `robustBufferAccess2` feature flag?
Contributor guide
Assessment
This issue has not been assessed yet.