@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.mjs 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
  /******************************************************************************
@@ -422,7 +422,7 @@ var RenderFrameInternal = /** @class */ (function () {
422
422
  return consoleError('renderer is destroyed', renderer);
423
423
  }
424
424
  frame.renderer.shaderLibrary.compileAllShaders();
425
- clear(renderer.internal, frame.clearAction);
425
+ clear(renderer.internal, frame.loadAction);
426
426
  //@ts-expect-error safe to assign
427
427
  var renderState = {
428
428
  currentFrame: frame,
@@ -503,8 +503,8 @@ function renderMesh(renderer, mesh, state) {
503
503
  }
504
504
  function loadRenderPassAttachments(renderer, renderPass) {
505
505
  renderPass.bind();
506
- if (renderPass.clearAction) {
507
- clear(renderer, renderPass.clearAction);
506
+ if (renderPass.loadAction) {
507
+ clear(renderer, renderPass.loadAction);
508
508
  }
509
509
  }
510
510
  function clear(renderer, action) {
@@ -577,7 +577,7 @@ var MarsRenderFrame = /** @class */ (function () {
577
577
  this._isDestroyed = false;
578
578
  this.setRenderPasses(options.renderPasses || []);
579
579
  this.semantics = new MarsSemanticMap(options.semantics);
580
- this.clearAction = options.clearAction || {};
580
+ this.loadAction = options.loadAction || {};
581
581
  this.name = options.name || ('RenderFrame' + renderFrameSeed++);
582
582
  if (renderer) {
583
583
  this.assignRenderer(renderer);
@@ -4099,7 +4099,7 @@ var MarsRenderPass = /** @class */ (function () {
4099
4099
  this.meshes = (options.meshes || []).slice();
4100
4100
  sortByOrder(this.meshes, this.meshOrder);
4101
4101
  this.options = options;
4102
- this.clearAction = Object.assign({}, options.clearAction);
4102
+ this.loadAction = Object.assign({}, options.loadAction);
4103
4103
  this._attachments = [];
4104
4104
  this.semantics = new MarsSemanticMap(options.semantics);
4105
4105
  this.depthStencilType = ((_a = options.depthStencilAttachment) === null || _a === void 0 ? void 0 : _a.storageType) || RenderPassAttachmentStorageType.none;
@@ -5524,7 +5524,7 @@ var MarsExtWrap = /** @class */ (function () {
5524
5524
  var name = 'mri-copy-mesh';
5525
5525
  return new MarsRenderPass({
5526
5526
  name: 'mri-copy-rp',
5527
- clearAction: {
5527
+ loadAction: {
5528
5528
  colorAction: TextureLoadAction.whatever,
5529
5529
  },
5530
5530
  attachments: [{ texture: { format: constants.RGBA } }],
@@ -5726,7 +5726,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5726
5726
  return MarsSharedGeometry;
5727
5727
  }(MarsGeometry));
5728
5728
 
5729
- consoleLog('version: ' + "0.1.60-beta.1");
5729
+ consoleLog('version: ' + "0.1.60-beta.2");
5730
5730
  consoleLog('Update : xxx');
5731
5731
 
5732
5732
  export { DestroyOptions, MarsGeometry as Geometry, MarsInstancedMesh as InstancedMesh, MarsTextureFactory, MarsMaterial as Material, MarsMaterialDataBlock as MaterialDataBlock, MarsMesh as Mesh, MarsRenderFrame as RenderFrame, MarsRenderPass as RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassMeshOrder, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, MarsRenderer as Renderer, ShaderCompileResultStatus, ShaderLibraryEmpty, MarsSharedGeometry as SharedGeometry, MarsTexture as Texture, TextureLoadAction, TextureSourceType, TextureStoreAction, constants, getDefaultGPUCapability, getDefaultTextureFactory, setDefaultTextureFactory };