@galacean/engine-core 2.0.0-alpha.0 → 2.0.0-alpha.2

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/module.js CHANGED
@@ -23058,8 +23058,7 @@ var SkinUpdateFlag = /*#__PURE__*/ function(SkinUpdateFlag) {
23058
23058
  var boneCountChange = boneCount !== boneDataCreateCache.x;
23059
23059
  if (boneCountChange || bsUniformOccupiesCount !== boneDataCreateCache.y) {
23060
23060
  // directly use max joint count to avoid shader recompile
23061
- // @TODO: different shader type should use different count, not always 44
23062
- var remainUniformJointCount = Math.ceil((this._maxVertexUniformVectors - (44 + bsUniformOccupiesCount)) / 4);
23061
+ var remainUniformJointCount = Math.ceil((this._maxVertexUniformVectors - (SkinnedMeshRenderer._baseVertexUniformVectorCount + bsUniformOccupiesCount)) / 4);
23063
23062
  if (boneCount > remainUniformJointCount) {
23064
23063
  var engine = this.engine;
23065
23064
  if (engine._hardwareRenderer.canIUseMoreJoints) {
@@ -23237,6 +23236,8 @@ var SkinUpdateFlag = /*#__PURE__*/ function(SkinUpdateFlag) {
23237
23236
  ]);
23238
23237
  return SkinnedMeshRenderer;
23239
23238
  }(MeshRenderer);
23239
+ // @TODO: different shader type should use different count, not always 48
23240
+ /** @internal */ SkinnedMeshRenderer._baseVertexUniformVectorCount = 48;
23240
23241
  SkinnedMeshRenderer._jointCountProperty = ShaderProperty.getByName("renderer_JointCount");
23241
23242
  SkinnedMeshRenderer._jointSamplerProperty = ShaderProperty.getByName("renderer_JointSampler");
23242
23243
  SkinnedMeshRenderer._jointMatrixProperty = ShaderProperty.getByName("renderer_JointMatrix");
@@ -37544,6 +37545,12 @@ var cacheDir = new Vector3();
37544
37545
  */ var AudioManager = /*#__PURE__*/ function() {
37545
37546
  function AudioManager() {}
37546
37547
  /**
37548
+ * Suspend the audio context.
37549
+ * @returns A promise that resolves when the audio context is suspended
37550
+ */ AudioManager.suspend = function suspend() {
37551
+ return AudioManager._context.suspend();
37552
+ };
37553
+ /**
37547
37554
  * Resume the audio context.
37548
37555
  * @remarks On iOS Safari, calling this within a user gesture (e.g., click/touch event handler) can pre-unlock audio and reduce playback delay.
37549
37556
  * @returns A promise that resolves when the audio context is resumed