@predy-js/render-interface 0.1.61-beta.24 → 0.1.61-beta.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @predy-js/render-interface
3
3
  * Description: undefined
4
4
  * Author: undefined
5
- * Version: v0.1.61-beta.24
5
+ * Version: v0.1.61-beta.25
6
6
  */
7
7
 
8
8
  'use strict';
@@ -5259,6 +5259,7 @@ var MarsGeometry = /** @class */ (function () {
5259
5259
  var option = {
5260
5260
  data: data,
5261
5261
  usage: gpuBufferOption.usage,
5262
+ target: gpuBufferOption.target,
5262
5263
  };
5263
5264
  buffers[gpuBufferName] = option;
5264
5265
  this._dirtyFlags[gpuBufferName].discard = true;
@@ -5368,10 +5369,10 @@ var MarsGeometry = /** @class */ (function () {
5368
5369
  usage: constants.STATIC_DRAW,
5369
5370
  };
5370
5371
  if (data instanceof Uint16Array) {
5371
- this.indexDataType = constants.SHORT;
5372
+ this.indexDataType = constants.UNSIGNED_SHORT;
5372
5373
  }
5373
5374
  else if (data instanceof Uint32Array) {
5374
- this.indexDataType = constants.INT;
5375
+ this.indexDataType = constants.UNSIGNED_INT;
5375
5376
  }
5376
5377
  }
5377
5378
  // 顶点属性参数
@@ -5824,7 +5825,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5824
5825
  return MarsSharedGeometry;
5825
5826
  }(MarsGeometry));
5826
5827
 
5827
- consoleLog('version: ' + "0.1.61-beta.24");
5828
+ consoleLog('version: ' + "0.1.61-beta.25");
5828
5829
 
5829
5830
  exports.GPUBufferOptionsMemoryShared = GPUBufferOptionsMemoryShared;
5830
5831
  exports.Geometry = MarsGeometry;