Tighten the rules around bufferView.byteStride #1888
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The intention of the spec has always been to only use byteStride for
buffer views with vertex data. However, the current language was lax in
a few places, which led to logical contradictions:
could be interpreted as requiring byteStride on that view
data, making it seem as if it's not valid on non-vertex views.
glTF-Validator flags bufferViews that have a byteStride but store
non-vertex data as erroneous. Based on this and the above, this change
tightens the language to explicitly only allow byteStride on vertex data
views, and changes all references to it to say the same.
This would close #1864 by explicitly outlawing interleaved data that's
not vertex data, and also relates to #1537 (that is already closed, but this
change would provide an actual resolution there).