@predy-js/render-interface 0.1.73-beta.2 → 0.1.73

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.73-beta.2
5
+ * Version: v0.1.73
6
6
  */
7
7
 
8
8
  'use strict';
@@ -110,7 +110,7 @@ exports.TextureLoadAction = void 0;
110
110
  (function (TextureLoadAction) {
111
111
  TextureLoadAction[TextureLoadAction["whatever"] = 0] = "whatever";
112
112
  //preserve previous attachment
113
- //load = 1,
113
+ TextureLoadAction[TextureLoadAction["load"] = 1] = "load";
114
114
  //clear attachment
115
115
  TextureLoadAction[TextureLoadAction["clear"] = 2] = "clear";
116
116
  })(exports.TextureLoadAction || (exports.TextureLoadAction = {}));
@@ -4130,6 +4130,16 @@ var MarsRenderPassColorAttachment = /** @class */ (function () {
4130
4130
  }());
4131
4131
 
4132
4132
  var seed$3 = 1;
4133
+ var defStoreAction = {
4134
+ colorAction: exports.TextureStoreAction.store,
4135
+ depthAction: exports.TextureStoreAction.store,
4136
+ stencilAction: exports.TextureStoreAction.store,
4137
+ };
4138
+ var defLoadAction = {
4139
+ colorAction: exports.TextureLoadAction.load,
4140
+ depthAction: exports.TextureLoadAction.load,
4141
+ stencilAction: exports.TextureLoadAction.load,
4142
+ };
4133
4143
  var MarsRenderPass = /** @class */ (function () {
4134
4144
  function MarsRenderPass(options, renderer) {
4135
4145
  var _a;
@@ -4140,7 +4150,7 @@ var MarsRenderPass = /** @class */ (function () {
4140
4150
  this.meshes = (options.meshes || []).slice();
4141
4151
  sortByOrder(this.meshes, this.meshOrder);
4142
4152
  this.options = options;
4143
- this.loadAction = Object.assign({}, options.loadAction);
4153
+ this.loadAction = Object.assign({}, defLoadAction, options.loadAction);
4144
4154
  this._attachments = [];
4145
4155
  this.semantics = new MarsSemanticMap(options.semantics);
4146
4156
  this.depthStencilType = ((_a = options.depthStencilAttachment) === null || _a === void 0 ? void 0 : _a.storageType) || exports.RenderPassAttachmentStorageType.none;
@@ -4149,12 +4159,7 @@ var MarsRenderPass = /** @class */ (function () {
4149
4159
  this.assignRenderer(renderer);
4150
4160
  }
4151
4161
  this.delegate = options.delegate || {};
4152
- var defStoreAction = {
4153
- colorAction: exports.TextureStoreAction.store,
4154
- depthAction: exports.TextureStoreAction.store,
4155
- stencilAction: exports.TextureStoreAction.store,
4156
- };
4157
- this.storeAction = Object.assign(defStoreAction, options.storeAction);
4162
+ this.storeAction = Object.assign({}, defStoreAction, options.storeAction);
4158
4163
  }
4159
4164
  Object.defineProperty(MarsRenderPass.prototype, "isDestroyed", {
4160
4165
  get: function () {
@@ -5837,7 +5842,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5837
5842
  return MarsSharedGeometry;
5838
5843
  }(MarsGeometry));
5839
5844
 
5840
- consoleLog('version: ' + "0.1.73-beta.2");
5845
+ consoleLog('version: ' + "0.1.73");
5841
5846
  var ModuleMsg = 'RI Package: @predy-js/render-interface';
5842
5847
 
5843
5848
  var RI = /*#__PURE__*/Object.freeze({