mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
fix int block init (#9781)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user