Skip to content
Discussion options

You must be logged in to vote

tl;dr I think the spec is too strict here.

MoltenVK does support this case; this is because, in Metal, a Vulkan stride of zero corresponds to MTLStepFunctionConstant, where the restriction on attribute offsets and buffer strides doesn't apply. However, a strict reading of the spec would indicate that an attribute's offset must never exceed the buffer stride when vertexAttributeAccessBeyondStride is false, even when the stride is zero. Therefore, the validation is correct according to the spec. But this is too strict for what Metal supports. Unfortunately, I don't have any pull with the Vulkan committee anymore, so I can't get the spec fixed here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FilippoLeon
Comment options

Answer selected by FilippoLeon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants