@antv/g-webgpu 1.7.55 → 1.7.56

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.umd.js CHANGED
@@ -6084,13 +6084,11 @@
6084
6084
  this.renderTargetDebugNames = [];
6085
6085
  };
6086
6086
  var RenderGraph = /*#__PURE__*/function () {
6087
- // For scope callbacks.
6088
-
6089
- //#region Resource Creation & Caching
6090
-
6091
6087
  function RenderGraph(device) {
6092
6088
  this.device = void 0;
6089
+ // For scope callbacks.
6093
6090
  this.currentPass = null;
6091
+ //#region Resource Creation & Caching
6094
6092
  this.renderTargetDeadPool = [];
6095
6093
  this.singleSampledTextureDeadPool = [];
6096
6094
  //#endregion
@@ -6742,16 +6740,13 @@
6742
6740
  RenderInstFlags[RenderInstFlags["InheritedFlags"] = 3] = "InheritedFlags";
6743
6741
  })(RenderInstFlags || (RenderInstFlags = {}));
6744
6742
  var RenderInst = /*#__PURE__*/function () {
6745
- // Debugging pointer for whomever wants it...
6746
-
6747
- // Pipeline building.
6748
-
6749
- // Bindings building.
6750
-
6751
6743
  function RenderInst() {
6752
6744
  this.sortKey = 0;
6745
+ // Debugging pointer for whomever wants it...
6753
6746
  this.debug = null;
6747
+ // Pipeline building.
6754
6748
  this.renderPipelineDescriptor = void 0;
6749
+ // Bindings building.
6755
6750
  this.uniformBuffer = void 0;
6756
6751
  this.uniforms = [];
6757
6752
  this.bindingDescriptors = nArray(1, function () {
@@ -8240,22 +8235,6 @@
8240
8235
  */
8241
8236
  var BufferGeometry = /*#__PURE__*/function (_EventEmitter) {
8242
8237
  _inheritsLoose$1(BufferGeometry, _EventEmitter);
8243
- /**
8244
- * 绘制模式
8245
- */
8246
-
8247
- /**
8248
- * 存放 Attribute Buffer 列表
8249
- */
8250
-
8251
- /**
8252
- * 存放 Index Buffer
8253
- */
8254
-
8255
- /**
8256
- * 索引数组
8257
- */
8258
-
8259
8238
  function BufferGeometry(device, props) {
8260
8239
  var _this;
8261
8240
  if (props === void 0) {
@@ -8264,10 +8243,22 @@
8264
8243
  _this = _EventEmitter.call(this) || this;
8265
8244
  _this.device = void 0;
8266
8245
  _this.props = void 0;
8246
+ /**
8247
+ * 绘制模式
8248
+ */
8267
8249
  _this.drawMode = PrimitiveTopology.Triangles;
8250
+ /**
8251
+ * 存放 Attribute Buffer 列表
8252
+ */
8268
8253
  _this.vertexBuffers = [];
8269
8254
  _this.vertices = [];
8255
+ /**
8256
+ * 存放 Index Buffer
8257
+ */
8270
8258
  _this.indexBuffer = void 0;
8259
+ /**
8260
+ * 索引数组
8261
+ */
8271
8262
  _this.indices = void 0;
8272
8263
  _this.inputLayoutDescriptor = {
8273
8264
  vertexBufferDescriptors: [],
@@ -8826,20 +8817,18 @@
8826
8817
  * Instanced mesh
8827
8818
  */
8828
8819
  var Instanced = /*#__PURE__*/function () {
8829
- /**
8830
- * unique ID
8831
- */
8832
-
8833
- /**
8834
- * index in renderer.meshes
8835
- */
8836
-
8837
8820
  function Instanced(renderHelper, texturePool, lightPool) {
8838
8821
  this.renderHelper = void 0;
8839
8822
  this.texturePool = void 0;
8840
8823
  this.lightPool = void 0;
8824
+ /**
8825
+ * unique ID
8826
+ */
8841
8827
  this.id = counter$1++;
8842
8828
  this.renderer = void 0;
8829
+ /**
8830
+ * index in renderer.meshes
8831
+ */
8843
8832
  this.index = -1;
8844
8833
  this.context = void 0;
8845
8834
  /**
@@ -16176,10 +16165,6 @@
16176
16165
  }
16177
16166
  var Buffer_WebGPU = /*#__PURE__*/function (_ResourceBase_WebGPU) {
16178
16167
  _inheritsLoose$5(Buffer_WebGPU, _ResourceBase_WebGPU);
16179
- /**
16180
- * @see https://www.w3.org/TR/webgpu/#gpubuffer
16181
- */
16182
-
16183
16168
  function Buffer_WebGPU(_ref) {
16184
16169
  var _this;
16185
16170
  var id = _ref.id,
@@ -16190,6 +16175,9 @@
16190
16175
  device: device
16191
16176
  }) || this;
16192
16177
  _this.type = ResourceType.Buffer;
16178
+ /**
16179
+ * @see https://www.w3.org/TR/webgpu/#gpubuffer
16180
+ */
16193
16181
  _this.gpuBuffer = void 0;
16194
16182
  _this.size = void 0;
16195
16183
  _this.view = void 0;
@@ -17033,8 +17021,6 @@
17033
17021
  }(ResourceBase_WebGPU);
17034
17022
  var Sampler_WebGPU = /*#__PURE__*/function (_ResourceBase_WebGPU) {
17035
17023
  _inheritsLoose$5(Sampler_WebGPU, _ResourceBase_WebGPU);
17036
- // @see https://www.w3.org/TR/webgpu/#gpusampler
17037
-
17038
17024
  function Sampler_WebGPU(_ref) {
17039
17025
  var _descriptor$maxAnisot, _descriptor$wrapQ;
17040
17026
  var _this;
@@ -17046,6 +17032,7 @@
17046
17032
  device: device
17047
17033
  }) || this;
17048
17034
  _this.type = ResourceType.Sampler;
17035
+ // @see https://www.w3.org/TR/webgpu/#gpusampler
17049
17036
  _this.gpuSampler = void 0;
17050
17037
  var lodMinClamp = descriptor.minLOD;
17051
17038
  var lodMaxClamp = descriptor.mipFilter === MipFilterMode.NoMip ? descriptor.minLOD : descriptor.maxLOD;
@@ -17115,9 +17102,6 @@
17115
17102
  return Texture_WebGPU;
17116
17103
  }(ResourceBase_WebGPU);
17117
17104
  var Device_WebGPU = /*#__PURE__*/function () {
17118
- // private fullscreenAlphaClear: FullscreenAlphaClear;
17119
- // VendorInfo
17120
-
17121
17105
  function Device_WebGPU(adapter, device, canvas, canvasContext, glsl_compile) {
17122
17106
  this.swapChainWidth = 0;
17123
17107
  this.swapChainHeight = 0;
@@ -17133,6 +17117,8 @@
17133
17117
  this.fallbackTextureCube = void 0;
17134
17118
  this.fallbackSampler = void 0;
17135
17119
  this.featureTextureCompressionBC = false;
17120
+ // private fullscreenAlphaClear: FullscreenAlphaClear;
17121
+ // VendorInfo
17136
17122
  this.platformString = 'WebGPU';
17137
17123
  this.glslVersion = "#version 440";
17138
17124
  this.explicitBindingLocations = true;