Skip to content

Commit

Permalink
Following issue #827 byteStride is now a property of a buffer view, n…
Browse files Browse the repository at this point in the history
…ot of the accessor.Thank you Alexey for pointing it out
  • Loading branch information
emiliano committed Feb 23, 2017
1 parent dc5621b commit 274be08
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 39 deletions.
25 changes: 1 addition & 24 deletions specification/2.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,6 @@ The following fragment shows an example of `sparse` accessor with 10 attributes
{
"bufferView": 0,
"byteOffset": 0,
"byteStride": 0,
"componentType": 5123,
"count": 12636,
"type": "VEC3",
Expand All @@ -491,13 +490,11 @@ The following fragment shows an example of `sparse` accessor with 10 attributes
"indices": {
"bufferView": 0,
"byteOffset": 75876,
"byteStride": 0,
"type": 5123,
},
"values": {
"bufferView": 0,
"byteOffset": 75816,
"byteStride": 0,
"byteOffset": 75816
}
}
}
Expand Down Expand Up @@ -1333,7 +1330,6 @@ Index array of size `accessor.sparse.count` that points to those accessor attrib
|---|----|-----------|--------|
|**bufferView**|`string`|The ID of the [`bufferView`](#reference-bufferView).| :white_check_mark: Yes|
|**byteOffset**|`integer`|The offset relative to the start of the [`bufferView`](#reference-bufferView) in bytes.| :white_check_mark: Yes|
|**byteStride**|`integer`|The stride, in bytes, between indices referenced by this accessor.|No, default: `0`|
|**componentType**|`integer`|The datatype of the indices referenced by this accessor.| :white_check_mark: Yes|
|**extensions**|`object`|Dictionary object with extension-specific objects.|No|
|**extras**|`any`|Application-specific data.|No|
Expand All @@ -1357,15 +1353,6 @@ The offset relative to the start of the [`bufferView`](#reference-bufferView) in
* **Minimum**: ` >= 0`
* **Related WebGL functions**: `vertexAttribPointer()` offset parameter

### indices.byteStride

The stride, in bytes, between indices referenced by this accessor. When this is zero, the indices are tightly packed. This must be a multiple of the size of the indices data type.

* **Type**: `integer`
* **Required**: No, default: `0`
* **Minimum**: ` >= 0`
* **Maximum**: ` <= 255`

### indices.componentType :white_check_mark:

The indices data type. Valid values correspond to WebGL enums: `5121` (UNSIGNED_BYTE), `5123` (UNSIGNED_SHORT), `5125` (UNSIGNED_INT).
Expand Down Expand Up @@ -1401,7 +1388,6 @@ Array of size `accessor.sparse.count` storing the displaced accessor attributes
|---|----|-----------|--------|
|**bufferView**|`string`|The ID of the [`bufferView`](#reference-bufferView).| :white_check_mark: Yes|
|**byteOffset**|`integer`|The offset relative to the start of the [`bufferView`](#reference-bufferView) in bytes.| :white_check_mark: Yes|
|**byteStride**|`integer`|The stride, in bytes, between attributes referenced by this accessor.|No, default: `0`|
|**extensions**|`object`|Dictionary object with extension-specific objects.|No|
|**extras**|`any`|Application-specific data.|No|

Expand All @@ -1423,15 +1409,6 @@ The offset relative to the start of the [`bufferView`](#reference-bufferView) in
* **Required**: Yes
* **Minimum**: ` >= 0`

### values.byteStride

The stride, in bytes, between attributes referenced by this accessor. When this is zero, the attributes are tightly packed. This must be a multiple of the size of the accessor component datatype.

* **Type**: `integer`
* **Required**: No, default: `0`
* **Minimum**: ` >= 0`
* **Maximum**: ` <= 255`

### values.extensions

Dictionary object with extension-specific objects.
Expand Down
8 changes: 0 additions & 8 deletions specification/2.0/schema/accessor.sparse.indices.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
"description" : "The offset relative to the start of the bufferView in bytes.",
"minimum" : 0,
},
"byteStride" : {
"type" : "integer",
"description" : "The stride, in bytes, between indices referenced by this accessor.",
"minimum" : 0,
"maximum" : 255,
"default" : 0,
"gltf_detailedDescription" : "The stride, in bytes, between indices referenced by this accessor. When this is zero, the indices are tightly packed. This must be a multiple of the size of the indices datatype.",
},
"componentType" : {
"type" : "integer",
"description" : "The indices data type.",
Expand Down
7 changes: 0 additions & 7 deletions specification/2.0/schema/accessor.sparse.values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@
"description" : "The offset relative to the start of the bufferView in bytes.",
"minimum" : 0,
},
"byteStride" : {
"type" : "integer",
"description" : "The stride, in bytes, between attributes referenced by this accessor.",
"minimum" : 0,
"maximum" : 255,
"default" : 0,
},
"name" : {},
"extensions" : {},
"extras" : {}
Expand Down

0 comments on commit 274be08

Please sign in to comment.