@luma.gl/core 9.0.4 → 9.0.6
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/adapter/device.d.ts +2 -0
- package/dist/adapter/device.d.ts.map +1 -1
- package/dist/adapter/device.js +4 -0
- package/dist/adapter/resources/render-pipeline.d.ts +4 -0
- package/dist/adapter/resources/render-pipeline.d.ts.map +1 -1
- package/dist/adapter/types/parameters.d.ts +2 -0
- package/dist/adapter/types/parameters.d.ts.map +1 -1
- package/dist/dist.dev.js +4 -0
- package/dist/dist.min.js +2 -2
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +2 -2
- package/dist/init.js +1 -1
- package/package.json +2 -2
- package/src/adapter/device.ts +5 -0
- package/src/adapter/resources/render-pipeline.ts +4 -0
- package/src/adapter/types/parameters.ts +3 -0
package/dist/init.js
CHANGED
|
@@ -11,7 +11,7 @@ import { lumaStats } from "./utils/stats-manager.js";
|
|
|
11
11
|
function initializeLuma() {
|
|
12
12
|
// Version detection using babel plugin
|
|
13
13
|
// @ts-expect-error
|
|
14
|
-
const VERSION = typeof "9.0.
|
|
14
|
+
const VERSION = typeof "9.0.5" !== 'undefined' ? "9.0.5" : 'running from source';
|
|
15
15
|
const STARTUP_MESSAGE = 'set luma.log.level=1 (or higher) to trace rendering';
|
|
16
16
|
// Assign luma.log.level in console to control logging: \
|
|
17
17
|
// 0: none, 1: minimal, 2: verbose, 3: attribute/uniforms, 4: gl logs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luma.gl/core",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.6",
|
|
4
4
|
"description": "The luma.gl core Device API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@probe.gl/stats": "^4.0.2",
|
|
47
47
|
"@types/offscreencanvas": "^2019.6.4"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "937f4cffd47819854b44ce1532add35f6a8d049c"
|
|
50
50
|
}
|
package/src/adapter/device.ts
CHANGED
|
@@ -476,6 +476,11 @@ export abstract class Device {
|
|
|
476
476
|
throw new Error('not implemented');
|
|
477
477
|
}
|
|
478
478
|
|
|
479
|
+
/** @deprecated - will be removed - should use for debugging only */
|
|
480
|
+
resetWebGL(): void {
|
|
481
|
+
throw new Error('not implemented');
|
|
482
|
+
}
|
|
483
|
+
|
|
479
484
|
timestamp: number = 0;
|
|
480
485
|
|
|
481
486
|
/** A monotonic counter for tracking buffer and texture updates */
|
|
@@ -116,6 +116,10 @@ export abstract class RenderPipeline extends Resource<RenderPipelineProps> {
|
|
|
116
116
|
abstract draw(options: {
|
|
117
117
|
/** Render pass to draw into (targeting screen or framebuffer) */
|
|
118
118
|
renderPass?: RenderPass;
|
|
119
|
+
/** Parameters to be set during draw call. Note that most parameters can only be overridden in WebGL. */
|
|
120
|
+
parameters?: RenderPipelineParameters;
|
|
121
|
+
/** Topology. Note can only be overridden in WebGL. */
|
|
122
|
+
topology?: PrimitiveTopology;
|
|
119
123
|
/** vertex attributes */
|
|
120
124
|
vertexArray: VertexArray;
|
|
121
125
|
/** Number of "rows" in index buffer */
|
|
@@ -184,6 +184,9 @@ export type RenderPassParameters = {
|
|
|
184
184
|
blendConstant?: number[]; // GPUColor
|
|
185
185
|
/** Stencil operation "replace" sets the value to stencilReference */
|
|
186
186
|
stencilReference?: number; // GPUStencilValue
|
|
187
|
+
|
|
188
|
+
/** Bitmask controlling which channels are are written to when drawing/clearing. defaulting to 0xF */
|
|
189
|
+
colorMask?: number;
|
|
187
190
|
};
|
|
188
191
|
|
|
189
192
|
export type RenderPipelineParameters = RasterizationParameters &
|