@kitware/vtk.js 27.4.1 → 27.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.
|
@@ -56,7 +56,9 @@ export interface vtkRenderWindow extends vtkObject {
|
|
|
56
56
|
captureImages(format?: string, opts?: any): Promise<string>[];
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Switch the rendering backend between WebGL and WebGPU.
|
|
60
|
+
* By default, the WebGL backend is used. To switch, to WebGPU call
|
|
61
|
+
* `renderWindow.setDefaultViewAPI('WebGPU')` before calling `render`.
|
|
60
62
|
*/
|
|
61
63
|
getDefaultViewAPI(): string;
|
|
62
64
|
|
|
@@ -143,8 +145,10 @@ export interface vtkRenderWindow extends vtkObject {
|
|
|
143
145
|
render(): void;
|
|
144
146
|
|
|
145
147
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
+
* Switch the rendering backend between WebGL and WebGPU.
|
|
149
|
+
* By default, the WebGL backend is used. To switch, to WebGPU call
|
|
150
|
+
* `renderWindow.setDefaultViewAPI('WebGPU')` before calling `render`.
|
|
151
|
+
* @param defaultViewAPI (default: 'WebGL')
|
|
148
152
|
*/
|
|
149
153
|
setDefaultViewAPI(defaultViewAPI: DEFAULT_VIEW_API): boolean;
|
|
150
154
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import macro from '../../macros.js';
|
|
2
2
|
|
|
3
|
-
var DEFAULT_VIEW_API =
|
|
3
|
+
var DEFAULT_VIEW_API = 'WebGL';
|
|
4
4
|
var VIEW_CONSTRUCTORS = Object.create(null); // ----------------------------------------------------------------------------
|
|
5
5
|
// static methods
|
|
6
6
|
// ----------------------------------------------------------------------------
|