forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbufferView.schema.json
37 lines (37 loc) · 1.43 KB
/
bufferView.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
{
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "bufferView",
"type" : "object",
"description" : "A view into a buffer generally representing a subset of the buffer.",
"allOf" : [ { "$ref" : "glTFChildOfRootProperty.schema.json" } ],
"properties" : {
"name" : {},
"extensions" : {},
"extras" : {},
"buffer" : {
"allOf" : [ { "$ref" : "glTFid.schema.json" } ],
"description" : "The ID of the buffer."
},
"byteOffset" : {
"type" : "integer",
"description" : "The offset into the buffer in bytes.",
"minimum" : 0
},
"byteLength" : {
"type" : "integer",
"description" : "The length of the bufferView in bytes.",
"minimum" : 0,
"default" : 0
},
"target" : {
"type" : "integer",
"description" : "The target that the WebGL buffer should be bound to.",
"enum" : [34962, 34963],
"gltf_enumNames" : ["ARRAY_BUFFER", "ELEMENT_ARRAY_BUFFER"],
"gltf_detailedDescription" : "The target that the WebGL buffer should be bound to. All valid values correspond to WebGL enums. When this is not provided, the bufferView contains animation or skin data.",
"gltf_webgl" : "`bindBuffer()`"
}
},
"additionalProperties" : false,
"required": ["buffer", "byteOffset"]
}