@kitware/vtk.js 22.4.1 → 22.4.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.
@@ -84,8 +84,8 @@ function vtkWebGPUHardwareSelectionPass(publicAPI, model) {
84
84
  fDesc.setCode(code);
85
85
  });
86
86
  var renDesc = model.selectionRenderEncoder.getDescription();
87
- renDesc.colorAttachments[0].loadValue = [0.0, 0.0, 0.0, 0.0];
88
- renDesc.depthStencilAttachment.stencilLoadValue = 'load';
87
+ renDesc.colorAttachments[0].clearValue = [0.0, 0.0, 0.0, 0.0];
88
+ renDesc.depthStencilAttachment.stencilLoadOp = 'load';
89
89
  model.selectionRenderEncoder.setPipelineSettings({
90
90
  primitive: {
91
91
  cullMode: 'none'
@@ -96,18 +96,20 @@ function vtkWebGPUOrderIndependentTranslucentPass(publicAPI, model) {
96
96
  var rDesc = model.translucentRenderEncoder.getDescription();
97
97
  rDesc.colorAttachments = [{
98
98
  view: undefined,
99
- loadValue: [0.0, 0.0, 0.0, 0.0],
99
+ clearValue: [0.0, 0.0, 0.0, 0.0],
100
+ loadOp: 'clear',
100
101
  storeOp: 'store'
101
102
  }, {
102
103
  view: undefined,
103
- loadValue: [1.0, 0.0, 0.0, 0.0],
104
+ clearValue: [1.0, 0.0, 0.0, 0.0],
105
+ loadOp: 'clear',
104
106
  storeOp: 'store'
105
107
  }];
106
108
  rDesc.depthStencilAttachment = {
107
109
  view: undefined,
108
- depthLoadValue: 'load',
110
+ depthLoadOp: 'load',
109
111
  depthStoreOp: 'store',
110
- stencilLoadValue: 'load',
112
+ stencilLoadOp: 'load',
111
113
  stencilStoreOp: 'store'
112
114
  };
113
115
  model.translucentRenderEncoder.setReplaceShaderCodeFunction(function (pipeline) {
@@ -167,7 +169,7 @@ function vtkWebGPUOrderIndependentTranslucentPass(publicAPI, model) {
167
169
  model.translucentFinalEncoder.setDescription({
168
170
  colorAttachments: [{
169
171
  view: null,
170
- loadValue: 'load',
172
+ loadOp: 'load',
171
173
  storeOp: 'store'
172
174
  }]
173
175
  });
@@ -138,14 +138,16 @@ function extend(publicAPI, model) {
138
138
  model.description = {
139
139
  colorAttachments: [{
140
140
  view: undefined,
141
- loadValue: 'load',
141
+ loadOp: 'load',
142
142
  storeOp: 'store'
143
143
  }],
144
144
  depthStencilAttachment: {
145
145
  view: undefined,
146
- depthLoadValue: 0.0,
146
+ depthLoadOp: 'clear',
147
+ depthClearValue: 0.0,
147
148
  depthStoreOp: 'store',
148
- stencilLoadValue: 0,
149
+ stencilLoadOp: 'clear',
150
+ stencilClearValue: 0,
149
151
  stencilStoreOp: 'store'
150
152
  }
151
153
  }; // default shader code just writes out the computedColor
@@ -390,11 +390,13 @@ function vtkWebGPUVolumePass(publicAPI, model) {
390
390
  model._depthRangeEncoder.setDescription({
391
391
  colorAttachments: [{
392
392
  view: null,
393
- loadValue: [0.0, 0.0, 0.0, 0.0],
393
+ clearValue: [0.0, 0.0, 0.0, 0.0],
394
+ loadOp: 'clear',
394
395
  storeOp: 'store'
395
396
  }, {
396
397
  view: null,
397
- loadValue: [1.0, 1.0, 1.0, 1.0],
398
+ clearValue: [1.0, 1.0, 1.0, 1.0],
399
+ loadOp: 'clear',
398
400
  storeOp: 'store'
399
401
  }]
400
402
  });
@@ -504,7 +506,8 @@ function vtkWebGPUVolumePass(publicAPI, model) {
504
506
  model._clearEncoder.setDescription({
505
507
  colorAttachments: [{
506
508
  view: null,
507
- loadValue: [0.0, 0.0, 0.0, 0.0],
509
+ clearValue: [0.0, 0.0, 0.0, 0.0],
510
+ loadOp: 'clear',
508
511
  storeOp: 'store'
509
512
  }]
510
513
  });
@@ -541,7 +544,7 @@ function vtkWebGPUVolumePass(publicAPI, model) {
541
544
  model._copyEncoder.setDescription({
542
545
  colorAttachments: [{
543
546
  view: null,
544
- loadValue: 'load',
547
+ loadOp: 'load',
545
548
  storeOp: 'store'
546
549
  }]
547
550
  });
@@ -580,7 +583,7 @@ function vtkWebGPUVolumePass(publicAPI, model) {
580
583
  model._mergeEncoder.setDescription({
581
584
  colorAttachments: [{
582
585
  view: null,
583
- loadValue: 'load',
586
+ loadOp: 'load',
584
587
  storeOp: 'store'
585
588
  }]
586
589
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitware/vtk.js",
3
- "version": "22.4.1",
3
+ "version": "22.4.2",
4
4
  "description": "Visualization Toolkit for the Web",
5
5
  "keywords": [
6
6
  "3d",