Skip to content

Commit 1223e9a

Browse files
committed
EXT_mesh_primitive_restart
1 parent 4752dee commit 1223e9a

File tree

4 files changed

+33
-33
lines changed

4 files changed

+33
-33
lines changed

extensions/2.0/Vendor/BENTLEY_primitive_restart/schema/mesh.BENTLEY_primitive_restart.schema.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

extensions/2.0/Vendor/BENTLEY_primitive_restart/README.md renamed to extensions/2.0/Vendor/EXT_mesh_primitive_restart/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!--
2-
Copyright 2015-2021 The Khronos Group Inc.
2+
Copyright 2015-2025 The Khronos Group Inc.
33
SPDX-License-Identifier: CC-BY-4.0
44
-->
55

6-
# BENTLEY_primitive_restart
6+
# EXT_mesh_primitive_restart
77

88
## Contributors
99

@@ -113,7 +113,7 @@ The mesh looks like this:
113113
}
114114
],
115115
"extensions": {
116-
"BENTLEY_primitive_restart": {
116+
"EXT_mesh_primitive_restart": {
117117
"primitiveGroups": [
118118
{
119119
"primitives": [
@@ -129,11 +129,11 @@ The mesh looks like this:
129129
],
130130
```
131131

132-
By default, this mesh draws two separate line strip primitives, each using its own `indices` accessor. The `BENTLEY_primitive_restart` extension specifies that both primitives can be replaced with a single one using a combined `indices` accessor containing primitive restart values.
132+
By default, this mesh draws two separate line strip primitives, each using its own `indices` accessor. The `EXT_mesh_primitive_restart` extension specifies that both primitives can be replaced with a single one using a combined `indices` accessor containing primitive restart values.
133133

134134
## glTF Schema Updates
135135

136-
The `BENTLEY_primitive_restart` extension is applied to a mesh. Its `primitiveGroups` property is a list of groups of primitives that can be replaced with a single primitive using primitive restart. Each group is described by a list of indices into `mesh.primitives`, along with the index of the accessor that supplies the vertex indices for the replacement primitive.
136+
The `EXT_mesh_primitive_restart` extension is applied to a mesh. Its `primitiveGroups` property is a list of groups of primitives that can be replaced with a single primitive using primitive restart. Each group is described by a list of indices into `mesh.primitives`, along with the index of the accessor that supplies the vertex indices for the replacement primitive.
137137

138138
## Constraints
139139

@@ -155,5 +155,5 @@ The extension is subject to the following constraints. Violation of any constrai
155155

156156
## JSON Schema
157157

158-
- [mesh.BENTLEY_primitive_restart.schema.json](schema/mesh.BENTLEY_primitive_restart.schema.json)
158+
- [EXT_mesh_primitive_restart.schema.json](schema/EXT_mesh_primitive_restart.schema.json)
159159
- [primitiveGroup.schema.json](schema/primitiveGroup.schema.json)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema",
3+
"$id": "EXT_mesh_primitive_restart",
4+
"title": "EXT_mesh_primitive_restart glTF extension",
5+
"type": "object",
6+
"description": "glTF extension enabling the use of primitive restart values in index buffers",
7+
"allOf": [
8+
{
9+
"$ref": "glTFProperty.schema.json"
10+
}
11+
],
12+
"properties": {
13+
"primitiveGroups": {
14+
"type": "array",
15+
"items": {
16+
"$ref": "primitiveGroup.schema.json"
17+
},
18+
"minItems": 1,
19+
"description": "The list of groups of primitives that can be drawn using a single index buffer with primitive restart"
20+
},
21+
"extensions": {},
22+
"extras": {}
23+
},
24+
"required": [
25+
"primitiveGroups"
26+
]
27+
}

0 commit comments

Comments
 (0)