forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
accessor.sparse.indices.schema.json
46 lines (46 loc) · 1.71 KB
/
accessor.sparse.indices.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Accessor Sparse Indices",
"type": "object",
"description": "Indices of those attributes that deviate from their initialization value.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"bufferView": {
"allOf": [ { "$ref": "glTFid.schema.json" } ],
"description": "The index of the bufferView with sparse indices. Referenced bufferView can't have ARRAY_BUFFER or ELEMENT_ARRAY_BUFFER target."
},
"byteOffset": {
"type": "integer",
"description": "The offset relative to the start of the bufferView in bytes. Must be aligned.",
"minimum": 0,
"default": 0
},
"componentType": {
"description": "The indices data type.",
"gltf_detailedDescription": "The indices data type. Valid values correspond to WebGL enums: `5121` (UNSIGNED_BYTE), `5123` (UNSIGNED_SHORT), `5125` (UNSIGNED_INT).",
"anyOf": [
{
"enum": [ 5121 ],
"description": "UNSIGNED_BYTE",
"type": "integer"
},
{
"enum": [ 5123 ],
"description": "UNSIGNED_SHORT",
"type": "integer"
},
{
"enum": [ 5125 ],
"description": "UNSIGNED_INT",
"type": "integer"
},
{
"type": "integer"
}
]
},
"extensions": { },
"extras": { }
},
"required": [ "bufferView", "componentType" ]
}