@predy-js/render-interface 0.1.60-beta.1 → 0.1.60-beta.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/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.60-beta.1
5
+ * Version: v0.1.60-beta.2
6
6
  */
7
7
 
8
8
  'use strict';
@@ -426,7 +426,7 @@ var RenderFrameInternal = /** @class */ (function () {
426
426
  return consoleError('renderer is destroyed', renderer);
427
427
  }
428
428
  frame.renderer.shaderLibrary.compileAllShaders();
429
- clear(renderer.internal, frame.clearAction);
429
+ clear(renderer.internal, frame.loadAction);
430
430
  //@ts-expect-error safe to assign
431
431
  var renderState = {
432
432
  currentFrame: frame,
@@ -507,8 +507,8 @@ function renderMesh(renderer, mesh, state) {
507
507
  }
508
508
  function loadRenderPassAttachments(renderer, renderPass) {
509
509
  renderPass.bind();
510
- if (renderPass.clearAction) {
511
- clear(renderer, renderPass.clearAction);
510
+ if (renderPass.loadAction) {
511
+ clear(renderer, renderPass.loadAction);
512
512
  }
513
513
  }
514
514
  function clear(renderer, action) {
@@ -581,7 +581,7 @@ var MarsRenderFrame = /** @class */ (function () {
581
581
  this._isDestroyed = false;
582
582
  this.setRenderPasses(options.renderPasses || []);
583
583
  this.semantics = new MarsSemanticMap(options.semantics);
584
- this.clearAction = options.clearAction || {};
584
+ this.loadAction = options.loadAction || {};
585
585
  this.name = options.name || ('RenderFrame' + renderFrameSeed++);
586
586
  if (renderer) {
587
587
  this.assignRenderer(renderer);
@@ -4103,7 +4103,7 @@ var MarsRenderPass = /** @class */ (function () {
4103
4103
  this.meshes = (options.meshes || []).slice();
4104
4104
  sortByOrder(this.meshes, this.meshOrder);
4105
4105
  this.options = options;
4106
- this.clearAction = Object.assign({}, options.clearAction);
4106
+ this.loadAction = Object.assign({}, options.loadAction);
4107
4107
  this._attachments = [];
4108
4108
  this.semantics = new MarsSemanticMap(options.semantics);
4109
4109
  this.depthStencilType = ((_a = options.depthStencilAttachment) === null || _a === void 0 ? void 0 : _a.storageType) || exports.RenderPassAttachmentStorageType.none;
@@ -5528,7 +5528,7 @@ var MarsExtWrap = /** @class */ (function () {
5528
5528
  var name = 'mri-copy-mesh';
5529
5529
  return new MarsRenderPass({
5530
5530
  name: 'mri-copy-rp',
5531
- clearAction: {
5531
+ loadAction: {
5532
5532
  colorAction: exports.TextureLoadAction.whatever,
5533
5533
  },
5534
5534
  attachments: [{ texture: { format: constants.RGBA } }],
@@ -5730,7 +5730,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5730
5730
  return MarsSharedGeometry;
5731
5731
  }(MarsGeometry));
5732
5732
 
5733
- consoleLog('version: ' + "0.1.60-beta.1");
5733
+ consoleLog('version: ' + "0.1.60-beta.2");
5734
5734
  consoleLog('Update : xxx');
5735
5735
 
5736
5736
  exports.Geometry = MarsGeometry;