fix int block init (#9781)

This commit is contained in:
Yun Hsiao Wu
2021-12-08 12:50:44 +08:00
committed by GitHub
parent 080053bc33
commit 810dbc7e29
+1 -1
View File
@@ -696,7 +696,7 @@ export class Pass {
// guarantees these bindings to be consecutive, starting from 0 and non-array-typed
this._blocks[binding] = new Float32Array(this._rootBlock!, _bufferViewInfo.offset,
size / Float32Array.BYTES_PER_ELEMENT);
this._blocksInt[binding] = new Int32Array(this._blocks[binding].buffer);
this._blocksInt[binding] = new Int32Array(this._blocks[binding].buffer, this._blocks[binding].byteOffset, this._blocks[binding].length);
this._descriptorSet.bindBuffer(binding, bufferView);
}
// store handles