EXT_mesh_primitive_restart
This extension permits the prohibition against maximal index values in index buffers to be selectively relaxed for groups of primitives, while providing a trivial fallback for implementations that don't support primitive restart. Discussed in #1142.
@emackey @javagl
What do you think about making this an EXT extension? It seems quite trivial to support it in viewers.
Also since it extends mesh objects, should it be called *_mesh_primitive_restart?
Whether the prefix is BENTEY or EXT is up do decide for the person who proposes the extension.
If there's no objection, I will push a change to rename the extension to EXT_mesh_primitive_restart and assign the copyright to Khronos.
Should we just name it KHR_ directly? We have already ratified some EXT_ extensions and wasn't able to rename to KHR_ due to compatibility. Would we ever consider ratifying this extension?
Should we just name it KHR_ directly?
We'd have to get an agreement within 3DF WG first and commit to providing Sample Assets at least.
Should we just name it KHR_ directly?
We'd have to get an agreement within 3DF WG first and commit to providing Sample Assets at least.
@lexaknyazev @bghgary any update on this? Or any additional feedback for @pmconne?
what prevents importers from doing this implicitly instead of checking for this explicit extension?
An importer that sees multiple line/triangle strip primitives all using the same vertex attributes could conceivably batch them together to be drawn using primitive restart, but that would require extra work on the importer's part to detect this and then rebuild the index buffer accordingly, whereas the extension ensures that the index buffer is already laid out for primitive restart.
@lexaknyazev @javagl @bghgary Anything else for this PR before it gets merged?
Did we discuss whether this should be KHR or EXT? Should there be a sample model that uses it?
These are not blocking though. I'm fine with merging regardless.
Did we discuss whether this should be KHR or EXT?
I don't think it came up in the WG. I'm fine with EXT, unless there's some strong desire to ratify this I'm not aware of.
Should there be a sample model that uses it?
That would be great, but it's a separate PR into the sample asset repo, so shouldn't hold this up.
What can I do to help get this over the finish line?
We have implemented this extension. Please let me know what if anything is required before this can merge.
@lexaknyazev Are there any other changes you'd like before we merge?
@weegeekps Please confirm the copyright info. If it's fine, feel free to merge.
@weegeekps All checked-in files must have SPDX copyright headers. The question was who is the owner in this particular case.
@lexaknyazev My mistake. I've opened a new PR to correct this: https://github.com/KhronosGroup/glTF/pull/2533