KhronosGroup / Vulkan-Docs

The Vulkan API Specification and related tools
Other
2.76k stars 463 forks source link

Clarify the alignment of pOffsets passed to vkCmdBindVertexBuffers #2411

Open godlikepanos opened 1 month ago

godlikepanos commented 1 month ago

The documentation of vkCmdBindVertexBuffers doesn't mention something about the alignment of pOffsets. Not sure if the alignment requirements are mentioned in another section but I think it would be a good idea to have something as part of vkCmdBindVertexBuffers's documentation.

HansKristian-Work commented 1 month ago

Alignment is validated after all vertex addressing logic has been applied, so it's too early to attempt validation at VBO bind time.

godlikepanos commented 3 weeks ago

Right, true. I wonder if we can add some text that points to https://registry.khronos.org/vulkan/specs/1.1-extensions/html/vkspec.html#fxvertex-input-extraction for additional clarity.