@luma.gl/webgl 9.1.0-alpha.1 → 9.1.0-alpha.12
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/converters/device-parameters.d.ts.map +1 -1
- package/dist/adapter/converters/device-parameters.js +18 -11
- package/dist/adapter/converters/texture-formats.d.ts +1 -1
- package/dist/adapter/converters/texture-formats.d.ts.map +1 -1
- package/dist/adapter/converters/texture-formats.js +9 -16
- package/dist/adapter/device-helpers/webgl-device-features.d.ts.map +1 -1
- package/dist/adapter/device-helpers/webgl-device-features.js +1 -3
- package/dist/adapter/helpers/format-utils.d.ts.map +1 -0
- package/dist/adapter/helpers/get-shader-layout.d.ts.map +1 -1
- package/dist/adapter/helpers/get-shader-layout.js +1 -3
- package/dist/adapter/helpers/typed-array-utils.d.ts.map +1 -0
- package/dist/adapter/helpers/webgl-texture-utils.d.ts +89 -22
- package/dist/adapter/helpers/webgl-texture-utils.d.ts.map +1 -1
- package/dist/adapter/helpers/webgl-texture-utils.js +220 -26
- package/dist/adapter/resources/webgl-framebuffer.js +1 -1
- package/dist/adapter/resources/webgl-render-pass.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-render-pass.js +17 -4
- package/dist/adapter/resources/webgl-render-pipeline.d.ts +1 -3
- package/dist/adapter/resources/webgl-render-pipeline.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-render-pipeline.js +1 -1
- package/dist/adapter/resources/webgl-shader.js +1 -1
- package/dist/adapter/resources/webgl-texture.d.ts +21 -3
- package/dist/adapter/resources/webgl-texture.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-texture.js +49 -30
- package/dist/adapter/resources/webgl-transform-feedback.js +1 -1
- package/dist/adapter/resources/webgl-vertex-array.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-vertex-array.js +3 -0
- package/dist/adapter/webgl-adapter.d.ts +21 -0
- package/dist/adapter/webgl-adapter.d.ts.map +1 -0
- package/dist/adapter/webgl-adapter.js +91 -0
- package/dist/adapter/webgl-device.d.ts +16 -29
- package/dist/adapter/webgl-device.d.ts.map +1 -1
- package/dist/adapter/webgl-device.js +34 -114
- package/dist/context/debug/spector-types.d.ts +1108 -0
- package/dist/context/debug/spector-types.d.ts.map +1 -0
- package/dist/context/debug/spector-types.js +697 -0
- package/dist/context/debug/spector.d.ts +12 -8
- package/dist/context/debug/spector.d.ts.map +1 -1
- package/dist/context/debug/spector.js +23 -17
- package/dist/context/polyfills/polyfill-webgl1-extensions.d.ts +9 -0
- package/dist/context/polyfills/polyfill-webgl1-extensions.d.ts.map +1 -0
- package/dist/context/polyfills/polyfill-webgl1-extensions.js +181 -0
- package/dist/context/state-tracker/webgl-state-tracker.d.ts +43 -0
- package/dist/context/state-tracker/webgl-state-tracker.d.ts.map +1 -0
- package/dist/context/state-tracker/{track-context-state.js → webgl-state-tracker.js} +44 -74
- package/dist/context/state-tracker/with-parameters.d.ts.map +1 -1
- package/dist/context/state-tracker/with-parameters.js +5 -4
- package/dist/deprecated/accessor.d.ts.map +1 -0
- package/dist/{classic → deprecated}/accessor.js +36 -1
- package/dist/deprecated/clear.d.ts.map +1 -0
- package/dist/{classic → deprecated}/clear.js +2 -0
- package/dist/dist.dev.js +816 -642
- package/dist/dist.min.js +2 -2
- package/dist/index.cjs +815 -648
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/utils/fill-array.d.ts +4 -4
- package/dist/utils/fill-array.d.ts.map +1 -1
- package/dist/utils/split-uniforms-and-bindings.d.ts +1 -1
- package/dist/utils/split-uniforms-and-bindings.d.ts.map +1 -1
- package/dist/utils/uid.d.ts +7 -0
- package/dist/utils/uid.d.ts.map +1 -0
- package/dist/utils/uid.js +14 -0
- package/package.json +5 -5
- package/src/adapter/converters/device-parameters.ts +18 -12
- package/src/adapter/converters/texture-formats.ts +12 -20
- package/src/adapter/device-helpers/webgl-device-features.ts +5 -3
- package/src/adapter/helpers/get-shader-layout.ts +1 -3
- package/src/adapter/helpers/webgl-texture-utils.ts +366 -44
- package/src/adapter/resources/webgl-framebuffer.ts +1 -1
- package/src/adapter/resources/webgl-render-pass.ts +20 -7
- package/src/adapter/resources/webgl-render-pipeline.ts +12 -4
- package/src/adapter/resources/webgl-shader.ts +1 -1
- package/src/adapter/resources/webgl-texture.ts +76 -30
- package/src/adapter/resources/webgl-transform-feedback.ts +1 -1
- package/src/adapter/resources/webgl-vertex-array.ts +3 -0
- package/src/adapter/webgl-adapter.ts +113 -0
- package/src/adapter/webgl-device.ts +45 -139
- package/src/context/debug/spector-types.ts +1154 -0
- package/src/context/debug/spector.ts +38 -29
- package/src/context/polyfills/polyfill-webgl1-extensions.ts +202 -0
- package/src/context/state-tracker/{track-context-state.ts → webgl-state-tracker.ts} +55 -94
- package/src/context/state-tracker/with-parameters.ts +5 -4
- package/src/{classic → deprecated}/accessor.ts +44 -3
- package/src/{classic → deprecated}/clear.ts +3 -1
- package/src/index.ts +6 -8
- package/src/utils/fill-array.ts +4 -4
- package/src/utils/split-uniforms-and-bindings.ts +3 -3
- package/src/utils/uid.ts +16 -0
- package/dist/classic/accessor.d.ts.map +0 -1
- package/dist/classic/clear.d.ts.map +0 -1
- package/dist/classic/copy-and-blit.d.ts +0 -63
- package/dist/classic/copy-and-blit.d.ts.map +0 -1
- package/dist/classic/copy-and-blit.js +0 -193
- package/dist/classic/format-utils.d.ts.map +0 -1
- package/dist/classic/typed-array-utils.d.ts.map +0 -1
- package/dist/context/state-tracker/track-context-state.d.ts +0 -22
- package/dist/context/state-tracker/track-context-state.d.ts.map +0 -1
- package/src/classic/copy-and-blit.ts +0 -318
- /package/dist/{classic → adapter/helpers}/format-utils.d.ts +0 -0
- /package/dist/{classic → adapter/helpers}/format-utils.js +0 -0
- /package/dist/{classic → adapter/helpers}/typed-array-utils.d.ts +0 -0
- /package/dist/{classic → adapter/helpers}/typed-array-utils.js +0 -0
- /package/dist/{classic → deprecated}/accessor.d.ts +0 -0
- /package/dist/{classic → deprecated}/clear.d.ts +0 -0
- /package/src/{classic → adapter/helpers}/format-utils.ts +0 -0
- /package/src/{classic → adapter/helpers}/typed-array-utils.ts +0 -0
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
// luma.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
|
|
4
|
+
import { Framebuffer } from '@luma.gl/core';
|
|
5
5
|
import { GL } from '@luma.gl/constants';
|
|
6
|
+
import { getGLTypeFromTypedArray, getTypedArrayFromGLType } from "./typed-array-utils.js";
|
|
7
|
+
import { glFormatToComponents, glTypeToBytes } from "./format-utils.js";
|
|
8
|
+
import { WEBGLTexture } from "../resources/webgl-texture.js";
|
|
6
9
|
/** A "border" parameter is required in many WebGL texture APIs, but must always be 0... */
|
|
7
10
|
const BORDER = 0;
|
|
8
11
|
/**
|
|
@@ -19,7 +22,7 @@ const BORDER = 0;
|
|
|
19
22
|
export function initializeTextureStorage(gl, levels, options) {
|
|
20
23
|
const { dimension, width, height, depth = 0 } = options;
|
|
21
24
|
const { glInternalFormat } = options;
|
|
22
|
-
const glTarget = options.glTarget; //
|
|
25
|
+
const glTarget = options.glTarget; // getWebGLCubeFaceTarget(options.glTarget, dimension, depth);
|
|
23
26
|
switch (dimension) {
|
|
24
27
|
case '2d-array':
|
|
25
28
|
case '3d':
|
|
@@ -32,23 +35,26 @@ export function initializeTextureStorage(gl, levels, options) {
|
|
|
32
35
|
/**
|
|
33
36
|
* Copy a region of compressed data from a GPU memory buffer into this texture.
|
|
34
37
|
*/
|
|
35
|
-
export function
|
|
36
|
-
const {
|
|
38
|
+
export function copyExternalImageToMipLevel(gl, handle, image, options) {
|
|
39
|
+
const { width, height } = options;
|
|
40
|
+
const { dimension, depth = 0, mipLevel = 0 } = options;
|
|
37
41
|
const { x = 0, y = 0, z = 0 } = options;
|
|
38
42
|
const { glFormat, glType } = options;
|
|
39
|
-
const glTarget =
|
|
40
|
-
// width = size.width,
|
|
41
|
-
// height = size.height
|
|
43
|
+
const glTarget = getWebGLCubeFaceTarget(options.glTarget, dimension, depth);
|
|
42
44
|
switch (dimension) {
|
|
43
45
|
case '2d-array':
|
|
44
46
|
case '3d':
|
|
47
|
+
gl.bindTexture(glTarget, handle);
|
|
45
48
|
// prettier-ignore
|
|
46
|
-
gl.texSubImage3D(glTarget,
|
|
49
|
+
gl.texSubImage3D(glTarget, mipLevel, x, y, z, width, height, depth, glFormat, glType, image);
|
|
50
|
+
gl.bindTexture(glTarget, null);
|
|
47
51
|
break;
|
|
48
52
|
case '2d':
|
|
49
53
|
case 'cube':
|
|
54
|
+
gl.bindTexture(glTarget, handle);
|
|
50
55
|
// prettier-ignore
|
|
51
|
-
gl.texSubImage2D(glTarget,
|
|
56
|
+
gl.texSubImage2D(glTarget, mipLevel, x, y, width, height, glFormat, glType, image);
|
|
57
|
+
gl.bindTexture(glTarget, null);
|
|
52
58
|
break;
|
|
53
59
|
default:
|
|
54
60
|
throw new Error(dimension);
|
|
@@ -58,31 +64,32 @@ export function copyCPUImageToMipLevel(gl, image, options) {
|
|
|
58
64
|
* Copy a region of data from a CPU memory buffer into this texture.
|
|
59
65
|
*/
|
|
60
66
|
export function copyCPUDataToMipLevel(gl, typedArray, options) {
|
|
61
|
-
const { dimension, width, height, depth = 0,
|
|
67
|
+
const { dimension, width, height, depth = 0, mipLevel = 0, byteOffset = 0 } = options;
|
|
62
68
|
const { x = 0, y = 0, z = 0 } = options;
|
|
63
69
|
const { glFormat, glType, compressed } = options;
|
|
64
|
-
const glTarget =
|
|
70
|
+
const glTarget = getWebGLCubeFaceTarget(options.glTarget, dimension, depth);
|
|
71
|
+
// gl.bindTexture(glTarget, null);
|
|
65
72
|
switch (dimension) {
|
|
66
73
|
case '2d-array':
|
|
67
74
|
case '3d':
|
|
68
75
|
if (compressed) {
|
|
69
76
|
// prettier-ignore
|
|
70
|
-
gl.compressedTexSubImage3D(glTarget,
|
|
77
|
+
gl.compressedTexSubImage3D(glTarget, mipLevel, x, y, z, width, height, depth, glFormat, typedArray, byteOffset); // , byteLength
|
|
71
78
|
}
|
|
72
79
|
else {
|
|
73
80
|
// prettier-ignore
|
|
74
|
-
gl.texSubImage3D(glTarget,
|
|
81
|
+
gl.texSubImage3D(glTarget, mipLevel, x, y, z, width, height, depth, glFormat, glType, typedArray, byteOffset); // , byteLength
|
|
75
82
|
}
|
|
76
83
|
break;
|
|
77
84
|
case '2d':
|
|
78
85
|
case 'cube':
|
|
79
86
|
if (compressed) {
|
|
80
87
|
// prettier-ignore
|
|
81
|
-
gl.compressedTexSubImage2D(glTarget,
|
|
88
|
+
gl.compressedTexSubImage2D(glTarget, mipLevel, x, y, width, height, glFormat, typedArray, byteOffset); // , byteLength
|
|
82
89
|
}
|
|
83
90
|
else {
|
|
84
91
|
// prettier-ignore
|
|
85
|
-
gl.texSubImage2D(glTarget,
|
|
92
|
+
gl.texSubImage2D(glTarget, mipLevel, x, y, width, height, glFormat, glType, typedArray, byteOffset); // , byteLength
|
|
86
93
|
}
|
|
87
94
|
break;
|
|
88
95
|
default:
|
|
@@ -93,10 +100,10 @@ export function copyCPUDataToMipLevel(gl, typedArray, options) {
|
|
|
93
100
|
* Copy a region of compressed data from a GPU memory buffer into this texture.
|
|
94
101
|
*/
|
|
95
102
|
export function copyGPUBufferToMipLevel(gl, webglBuffer, byteLength, options) {
|
|
96
|
-
const { dimension, width, height, depth = 0,
|
|
103
|
+
const { dimension, width, height, depth = 0, mipLevel = 0, byteOffset = 0 } = options;
|
|
97
104
|
const { x = 0, y = 0, z = 0 } = options;
|
|
98
105
|
const { glFormat, glType, compressed } = options;
|
|
99
|
-
const glTarget =
|
|
106
|
+
const glTarget = getWebGLCubeFaceTarget(options.glTarget, dimension, depth);
|
|
100
107
|
gl.bindBuffer(35052, webglBuffer);
|
|
101
108
|
switch (dimension) {
|
|
102
109
|
case '2d-array':
|
|
@@ -105,22 +112,22 @@ export function copyGPUBufferToMipLevel(gl, webglBuffer, byteLength, options) {
|
|
|
105
112
|
if (compressed) {
|
|
106
113
|
// TODO enable extension?
|
|
107
114
|
// prettier-ignore
|
|
108
|
-
gl.compressedTexSubImage3D(glTarget,
|
|
115
|
+
gl.compressedTexSubImage3D(glTarget, mipLevel, x, y, z, width, height, depth, glFormat, byteLength, byteOffset);
|
|
109
116
|
}
|
|
110
117
|
else {
|
|
111
118
|
// prettier-ignore
|
|
112
|
-
gl.texSubImage3D(glTarget,
|
|
119
|
+
gl.texSubImage3D(glTarget, mipLevel, x, y, z, width, height, depth, glFormat, glType, byteOffset);
|
|
113
120
|
}
|
|
114
121
|
break;
|
|
115
122
|
case '2d':
|
|
116
123
|
case 'cube':
|
|
117
124
|
if (compressed) {
|
|
118
125
|
// prettier-ignore
|
|
119
|
-
gl.compressedTexSubImage2D(glTarget,
|
|
126
|
+
gl.compressedTexSubImage2D(glTarget, mipLevel, x, y, width, height, glFormat, byteLength, byteOffset);
|
|
120
127
|
}
|
|
121
128
|
else {
|
|
122
129
|
// prettier-ignore
|
|
123
|
-
gl.texSubImage2D(glTarget,
|
|
130
|
+
gl.texSubImage2D(glTarget, mipLevel, x, y, width, height, BORDER, glFormat, byteOffset);
|
|
124
131
|
}
|
|
125
132
|
break;
|
|
126
133
|
default:
|
|
@@ -143,9 +150,10 @@ export function getWebGLTextureTarget(dimension) {
|
|
|
143
150
|
}
|
|
144
151
|
/**
|
|
145
152
|
* In WebGL, cube maps specify faces by overriding target instead of using the depth parameter.
|
|
153
|
+
* @note We still bind the texture using GL.TEXTURE_CUBE_MAP, but we need to use the face-specific target when setting mip levels.
|
|
146
154
|
* @returns glTarget unchanged, if dimension !== 'cube'.
|
|
147
155
|
*/
|
|
148
|
-
function
|
|
156
|
+
export function getWebGLCubeFaceTarget(glTarget, dimension, level) {
|
|
149
157
|
return dimension === 'cube' ? 34069 + level : glTarget;
|
|
150
158
|
}
|
|
151
159
|
// texImage methods
|
|
@@ -156,7 +164,7 @@ function getCubeTargetWebGL(glTarget, dimension, level) {
|
|
|
156
164
|
export function clearMipLevel(gl: WebGL2RenderingContext, options: WebGLSetTextureOptions): void {
|
|
157
165
|
const {dimension, width, height, depth = 0, level = 0} = options;
|
|
158
166
|
const {glInternalFormat, glFormat, glType, compressed} = options;
|
|
159
|
-
const glTarget =
|
|
167
|
+
const glTarget = getWebGLCubeFaceTarget(options.glTarget, dimension, depth);
|
|
160
168
|
|
|
161
169
|
switch (dimension) {
|
|
162
170
|
case '2d-array':
|
|
@@ -199,7 +207,7 @@ export function setMipLevelFromExternalImage(
|
|
|
199
207
|
const {dimension, width, height, depth = 0, level = 0} = options;
|
|
200
208
|
const {glInternalFormat, glType} = options;
|
|
201
209
|
|
|
202
|
-
const glTarget =
|
|
210
|
+
const glTarget = getWebGLCubeFaceTarget(options.glTarget, dimension, depth);
|
|
203
211
|
|
|
204
212
|
// TODO - we can't change texture width (due to WebGPU limitations) -
|
|
205
213
|
// and the width/heigh of an external image is implicit, so why do we need to extract it?
|
|
@@ -250,7 +258,7 @@ export function setMipLevelFromTypedArray(
|
|
|
250
258
|
const {dimension, width, height, depth = 0, level = 0, offset = 0} = options;
|
|
251
259
|
const {glInternalFormat, glFormat, glType, compressed} = options;
|
|
252
260
|
|
|
253
|
-
const glTarget =
|
|
261
|
+
const glTarget = getWebGLCubeFaceTarget(options.glTarget, dimension, depth);
|
|
254
262
|
|
|
255
263
|
withGLParameters(gl, parameters, () => {
|
|
256
264
|
switch (dimension) {
|
|
@@ -329,7 +337,7 @@ export function setMipLevelFromGPUBuffer(
|
|
|
329
337
|
): void {
|
|
330
338
|
const {dimension, width, height, depth = 0, level = 0, byteOffset = 0} = options;
|
|
331
339
|
const {glInternalFormat, glFormat, glType, compressed} = options;
|
|
332
|
-
const glTarget =
|
|
340
|
+
const glTarget = getWebGLCubeFaceTarget(options.glTarget, dimension, depth);
|
|
333
341
|
|
|
334
342
|
const webglBuffer = buffer as WEBGLBuffer;
|
|
335
343
|
const imageSize = buffer.byteLength;
|
|
@@ -366,3 +374,189 @@ export function setMipLevelFromGPUBuffer(
|
|
|
366
374
|
gl.bindBuffer(GL.PIXEL_UNPACK_BUFFER, null);
|
|
367
375
|
}
|
|
368
376
|
*/
|
|
377
|
+
/**
|
|
378
|
+
* Copies data from a type or a Texture object into ArrayBuffer object.
|
|
379
|
+
* App can provide targetPixelArray or have it auto allocated by this method
|
|
380
|
+
* newly allocated by this method unless provided by app.
|
|
381
|
+
* @deprecated Use CommandEncoder.copyTextureToBuffer and Buffer.read
|
|
382
|
+
* @note Slow requires roundtrip to GPU
|
|
383
|
+
*
|
|
384
|
+
* @param source
|
|
385
|
+
* @param options
|
|
386
|
+
* @returns pixel array,
|
|
387
|
+
*/
|
|
388
|
+
export function readPixelsToArray(source, options) {
|
|
389
|
+
const { sourceX = 0, sourceY = 0, sourceAttachment = 36064 // TODO - support gl.readBuffer
|
|
390
|
+
} = options || {};
|
|
391
|
+
let { target = null,
|
|
392
|
+
// following parameters are auto deduced if not provided
|
|
393
|
+
sourceWidth, sourceHeight, sourceDepth, sourceFormat, sourceType } = options || {};
|
|
394
|
+
const { framebuffer, deleteFramebuffer } = getFramebuffer(source);
|
|
395
|
+
// assert(framebuffer);
|
|
396
|
+
const { gl, handle } = framebuffer;
|
|
397
|
+
const attachment = sourceAttachment - 36064;
|
|
398
|
+
sourceWidth ||= framebuffer.width;
|
|
399
|
+
sourceHeight ||= framebuffer.height;
|
|
400
|
+
// TODO - Set and unset gl.readBuffer
|
|
401
|
+
// if (sourceAttachment === GL.COLOR_ATTACHMENT0 && handle === null) {
|
|
402
|
+
// sourceAttachment = GL.FRONT;
|
|
403
|
+
// }
|
|
404
|
+
sourceDepth = framebuffer.colorAttachments[attachment]?.texture?.depth || 1;
|
|
405
|
+
sourceFormat ||= framebuffer.colorAttachments[attachment]?.texture?.glFormat || 6408;
|
|
406
|
+
// Deduce the type from color attachment if not provided.
|
|
407
|
+
sourceType ||= framebuffer.colorAttachments[attachment]?.texture?.glType || 5121;
|
|
408
|
+
// Deduce type and allocated pixelArray if needed
|
|
409
|
+
target = getPixelArray(target, sourceType, sourceFormat, sourceWidth, sourceHeight, sourceDepth);
|
|
410
|
+
// Pixel array available, if necessary, deduce type from it.
|
|
411
|
+
sourceType = sourceType || getGLTypeFromTypedArray(target);
|
|
412
|
+
const prevHandle = gl.bindFramebuffer(36160, handle);
|
|
413
|
+
gl.readPixels(sourceX, sourceY, sourceWidth, sourceHeight, sourceFormat, sourceType, target);
|
|
414
|
+
// @ts-expect-error
|
|
415
|
+
gl.bindFramebuffer(36160, prevHandle || null);
|
|
416
|
+
if (deleteFramebuffer) {
|
|
417
|
+
framebuffer.destroy();
|
|
418
|
+
}
|
|
419
|
+
return target;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Copies data from a Framebuffer or a Texture object into a Buffer object.
|
|
423
|
+
* NOTE: doesn't wait for copy to be complete, it programs GPU to perform a DMA transffer.
|
|
424
|
+
* @deprecated Use CommandEncoder
|
|
425
|
+
* @param source
|
|
426
|
+
* @param options
|
|
427
|
+
*/
|
|
428
|
+
export function readPixelsToBuffer(source, options) {
|
|
429
|
+
const { target, sourceX = 0, sourceY = 0, sourceFormat = 6408, targetByteOffset = 0 } = options || {};
|
|
430
|
+
// following parameters are auto deduced if not provided
|
|
431
|
+
let { sourceWidth, sourceHeight, sourceType } = options || {};
|
|
432
|
+
const { framebuffer, deleteFramebuffer } = getFramebuffer(source);
|
|
433
|
+
// assert(framebuffer);
|
|
434
|
+
sourceWidth = sourceWidth || framebuffer.width;
|
|
435
|
+
sourceHeight = sourceHeight || framebuffer.height;
|
|
436
|
+
// Asynchronous read (PIXEL_PACK_BUFFER) is WebGL2 only feature
|
|
437
|
+
const webglFramebuffer = framebuffer;
|
|
438
|
+
// deduce type if not available.
|
|
439
|
+
sourceType = sourceType || 5121;
|
|
440
|
+
let webglBufferTarget = target;
|
|
441
|
+
if (!webglBufferTarget) {
|
|
442
|
+
// Create new buffer with enough size
|
|
443
|
+
const components = glFormatToComponents(sourceFormat);
|
|
444
|
+
const byteCount = glTypeToBytes(sourceType);
|
|
445
|
+
const byteLength = targetByteOffset + sourceWidth * sourceHeight * components * byteCount;
|
|
446
|
+
webglBufferTarget = webglFramebuffer.device.createBuffer({ byteLength });
|
|
447
|
+
}
|
|
448
|
+
// TODO(donmccurdy): Do we have tests to confirm this is working?
|
|
449
|
+
const commandEncoder = source.device.createCommandEncoder();
|
|
450
|
+
commandEncoder.copyTextureToBuffer({
|
|
451
|
+
source: source,
|
|
452
|
+
width: sourceWidth,
|
|
453
|
+
height: sourceHeight,
|
|
454
|
+
origin: [sourceX, sourceY],
|
|
455
|
+
destination: webglBufferTarget,
|
|
456
|
+
byteOffset: targetByteOffset
|
|
457
|
+
});
|
|
458
|
+
commandEncoder.destroy();
|
|
459
|
+
if (deleteFramebuffer) {
|
|
460
|
+
framebuffer.destroy();
|
|
461
|
+
}
|
|
462
|
+
return webglBufferTarget;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Copy a rectangle from a Framebuffer or Texture object into a texture (at an offset)
|
|
466
|
+
* @deprecated Use CommandEncoder
|
|
467
|
+
*/
|
|
468
|
+
// eslint-disable-next-line complexity, max-statements
|
|
469
|
+
export function copyToTexture(source, target, options) {
|
|
470
|
+
const { sourceX = 0, sourceY = 0,
|
|
471
|
+
// attachment = GL.COLOR_ATTACHMENT0, // TODO - support gl.readBuffer
|
|
472
|
+
targetMipmaplevel = 0, targetInternalFormat = 6408 } = options || {};
|
|
473
|
+
let { targetX, targetY, targetZ, width, // defaults to target width
|
|
474
|
+
height // defaults to target height
|
|
475
|
+
} = options || {};
|
|
476
|
+
const { framebuffer, deleteFramebuffer } = getFramebuffer(source);
|
|
477
|
+
// assert(framebuffer);
|
|
478
|
+
const webglFramebuffer = framebuffer;
|
|
479
|
+
const { device, handle } = webglFramebuffer;
|
|
480
|
+
const isSubCopy = typeof targetX !== 'undefined' ||
|
|
481
|
+
typeof targetY !== 'undefined' ||
|
|
482
|
+
typeof targetZ !== 'undefined';
|
|
483
|
+
targetX = targetX || 0;
|
|
484
|
+
targetY = targetY || 0;
|
|
485
|
+
targetZ = targetZ || 0;
|
|
486
|
+
const prevHandle = device.gl.bindFramebuffer(36160, handle);
|
|
487
|
+
// TODO - support gl.readBuffer (WebGL2 only)
|
|
488
|
+
// const prevBuffer = gl.readBuffer(attachment);
|
|
489
|
+
// assert(target);
|
|
490
|
+
let texture = null;
|
|
491
|
+
let textureTarget;
|
|
492
|
+
if (target instanceof WEBGLTexture) {
|
|
493
|
+
texture = target;
|
|
494
|
+
width = Number.isFinite(width) ? width : texture.width;
|
|
495
|
+
height = Number.isFinite(height) ? height : texture.height;
|
|
496
|
+
texture?.bind(0);
|
|
497
|
+
// @ts-ignore
|
|
498
|
+
textureTarget = texture.target;
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
// @ts-ignore
|
|
502
|
+
textureTarget = target;
|
|
503
|
+
}
|
|
504
|
+
if (!isSubCopy) {
|
|
505
|
+
device.gl.copyTexImage2D(textureTarget, targetMipmaplevel, targetInternalFormat, sourceX, sourceY, width, height, 0 /* border must be 0 */);
|
|
506
|
+
}
|
|
507
|
+
else {
|
|
508
|
+
switch (textureTarget) {
|
|
509
|
+
case 3553:
|
|
510
|
+
case 34067:
|
|
511
|
+
device.gl.copyTexSubImage2D(textureTarget, targetMipmaplevel, targetX, targetY, sourceX, sourceY, width, height);
|
|
512
|
+
break;
|
|
513
|
+
case 35866:
|
|
514
|
+
case 32879:
|
|
515
|
+
device.gl.copyTexSubImage3D(textureTarget, targetMipmaplevel, targetX, targetY, targetZ, sourceX, sourceY, width, height);
|
|
516
|
+
break;
|
|
517
|
+
default:
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
if (texture) {
|
|
521
|
+
texture.unbind();
|
|
522
|
+
}
|
|
523
|
+
// @ts-expect-error
|
|
524
|
+
device.gl.bindFramebuffer(36160, prevHandle || null);
|
|
525
|
+
if (deleteFramebuffer) {
|
|
526
|
+
framebuffer.destroy();
|
|
527
|
+
}
|
|
528
|
+
return texture;
|
|
529
|
+
}
|
|
530
|
+
function getFramebuffer(source) {
|
|
531
|
+
if (!(source instanceof Framebuffer)) {
|
|
532
|
+
return { framebuffer: toFramebuffer(source), deleteFramebuffer: true };
|
|
533
|
+
}
|
|
534
|
+
return { framebuffer: source, deleteFramebuffer: false };
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Wraps a given texture into a framebuffer object, that can be further used
|
|
538
|
+
* to read data from the texture object.
|
|
539
|
+
*/
|
|
540
|
+
export function toFramebuffer(texture, props) {
|
|
541
|
+
const { device, width, height, id } = texture;
|
|
542
|
+
const framebuffer = device.createFramebuffer({
|
|
543
|
+
...props,
|
|
544
|
+
id: `framebuffer-for-${id}`,
|
|
545
|
+
width,
|
|
546
|
+
height,
|
|
547
|
+
colorAttachments: [texture]
|
|
548
|
+
});
|
|
549
|
+
return framebuffer;
|
|
550
|
+
}
|
|
551
|
+
// eslint-disable-next-line max-params
|
|
552
|
+
function getPixelArray(pixelArray, type, format, width, height, depth) {
|
|
553
|
+
if (pixelArray) {
|
|
554
|
+
return pixelArray;
|
|
555
|
+
}
|
|
556
|
+
// Allocate pixel array if not already available, using supplied type
|
|
557
|
+
type = type || 5121;
|
|
558
|
+
const ArrayType = getTypedArrayFromGLType(type, { clamped: false });
|
|
559
|
+
const components = glFormatToComponents(format);
|
|
560
|
+
// TODO - check for composite type (components = 1).
|
|
561
|
+
return new ArrayType(width * height * components);
|
|
562
|
+
}
|
|
@@ -123,7 +123,7 @@ export class WEBGLFramebuffer extends Framebuffer {
|
|
|
123
123
|
switch (texture.glTarget) {
|
|
124
124
|
case 35866:
|
|
125
125
|
case 32879:
|
|
126
|
-
gl.framebufferTextureLayer(36160, attachment, texture.
|
|
126
|
+
gl.framebufferTextureLayer(36160, attachment, texture.handle, level, layer);
|
|
127
127
|
break;
|
|
128
128
|
case 34067:
|
|
129
129
|
// layer must be a cubemap face (or if index, converted to cube map face)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webgl-render-pass.d.ts","sourceRoot":"","sources":["../../../src/adapter/resources/webgl-render-pass.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"webgl-render-pass.d.ts","sourceRoot":"","sources":["../../../src/adapter/resources/webgl-render-pass.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAe,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAE,eAAe,EAAE,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAChF,OAAO,EAAC,WAAW,EAAC,2BAAwB;AAC5C,OAAO,EAAK,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAapD,qBAAa,eAAgB,SAAQ,UAAU;IAC7C,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAE7B,8DAA8D;IAC9D,YAAY,EAAE,YAAY,CAAC;gBAEf,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,eAAe;IA0BvD,GAAG,IAAI,IAAI;IAKX,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IACxC,aAAa,IAAI,IAAI;IACrB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAO5C;;OAEG;IACH,aAAa,CAAC,UAAU,GAAE,oBAAyB,GAAG,IAAI;IAmD1D,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAKpC,iBAAiB,IAAI,IAAI;IAOlC;;OAEG;IACH,SAAS,CAAC,KAAK,IAAI,IAAI;IA+BvB;;OAEG;IACH,SAAS,CAAC,gBAAgB,CAAC,UAAU,GAAE,MAAU,EAAE,KAAK,GAAE,YAA2B;CAwCtF"}
|
|
@@ -5,7 +5,6 @@ import { RenderPass } from '@luma.gl/core';
|
|
|
5
5
|
import { GL } from '@luma.gl/constants';
|
|
6
6
|
import { withGLParameters } from "../../context/state-tracker/with-parameters.js";
|
|
7
7
|
import { setGLParameters } from "../../context/parameters/unified-parameter-api.js";
|
|
8
|
-
import { pushContextState, popContextState } from "../../context/state-tracker/track-context-state.js";
|
|
9
8
|
// Should collapse during minification
|
|
10
9
|
const GL_DEPTH_BUFFER_BIT = 0x00000100;
|
|
11
10
|
const GL_STENCIL_BUFFER_BIT = 0x00000400;
|
|
@@ -19,14 +18,28 @@ export class WEBGLRenderPass extends RenderPass {
|
|
|
19
18
|
constructor(device, props) {
|
|
20
19
|
super(device, props);
|
|
21
20
|
this.device = device;
|
|
21
|
+
// If no viewport is provided, apply reasonably defaults
|
|
22
|
+
let viewport;
|
|
23
|
+
if (!props?.parameters?.viewport) {
|
|
24
|
+
if (props?.framebuffer) {
|
|
25
|
+
// Set the viewport to the size of the framebuffer
|
|
26
|
+
const { width, height } = props.framebuffer;
|
|
27
|
+
viewport = [0, 0, width, height];
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
// Instead of using our own book-keeping, we can just read the values from the WebGL context
|
|
31
|
+
const [width, height] = device.getCanvasContext().getDrawingBufferSize();
|
|
32
|
+
viewport = [0, 0, width, height];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
22
35
|
// TODO - do parameters (scissorRect) affect the clear operation?
|
|
23
|
-
|
|
24
|
-
this.setParameters(this.props.parameters);
|
|
36
|
+
this.device.pushState();
|
|
37
|
+
this.setParameters({ viewport, ...this.props.parameters });
|
|
25
38
|
// Hack - for now WebGL draws in "immediate mode" (instead of queueing the operations)...
|
|
26
39
|
this.clear();
|
|
27
40
|
}
|
|
28
41
|
end() {
|
|
29
|
-
|
|
42
|
+
this.device.popState();
|
|
30
43
|
// should add commands to CommandEncoder.
|
|
31
44
|
}
|
|
32
45
|
pushDebugGroup(groupLabel) { }
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { RenderPipelineProps, RenderPipelineParameters, PrimitiveTopology } from '@luma.gl/core';
|
|
2
|
-
import type { ShaderLayout, UniformValue, Binding } from '@luma.gl/core';
|
|
3
|
-
import type { RenderPass, VertexArray } from '@luma.gl/core';
|
|
1
|
+
import type { RenderPipelineProps, RenderPipelineParameters, PrimitiveTopology, ShaderLayout, UniformValue, Binding, RenderPass, VertexArray } from '@luma.gl/core';
|
|
4
2
|
import { RenderPipeline } from '@luma.gl/core';
|
|
5
3
|
import { WebGLDevice } from "../webgl-device.js";
|
|
6
4
|
import { WEBGLShader } from "./webgl-shader.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webgl-render-pipeline.d.ts","sourceRoot":"","sources":["../../../src/adapter/resources/webgl-render-pipeline.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"webgl-render-pipeline.d.ts","sourceRoot":"","sources":["../../../src/adapter/resources/webgl-render-pipeline.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,UAAU,EACV,WAAW,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,cAAc,EAAM,MAAM,eAAe,CAAC;AAUlD,OAAO,EAAC,WAAW,EAAC,2BAAwB;AAE5C,OAAO,EAAC,WAAW,EAAC,0BAAuB;AAK3C,OAAO,EAAC,sBAAsB,EAAC,sCAAmC;AAKlE,oCAAoC;AACpC,qBAAa,mBAAoB,SAAQ,cAAc;IACrD,yDAAyD;IACzD,MAAM,EAAE,WAAW,CAAC;IACpB,yCAAyC;IACzC,MAAM,EAAE,YAAY,CAAC;IACrB,oBAAoB;IACpB,EAAE,EAAE,WAAW,CAAC;IAChB,sBAAsB;IACtB,EAAE,EAAE,WAAW,CAAC;IAChB,mEAAmE;IACnE,kBAAkB,EAAE,YAAY,CAAC;IAEjC,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAM;IAC5C,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC,MAA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CAAC,IAAI,CAAC;IAoB3C;;;;OAIG;IACH,sBAAsB;IAsBtB,iDAAiD;IACjD,cAAc;IAyFd;;;OAGG;IACH,cAAc;CASf"}
|
|
@@ -85,7 +85,7 @@ export class WEBGLRenderPipeline extends RenderPipeline {
|
|
|
85
85
|
.map(binding => `"${binding.name}"`)
|
|
86
86
|
.join(', ');
|
|
87
87
|
if (!options?.disableWarnings) {
|
|
88
|
-
log.warn(`
|
|
88
|
+
log.warn(`No binding "${name}" in render pipeline "${this.id}", expected one of ${validBindings}`, value)();
|
|
89
89
|
}
|
|
90
90
|
continue; // eslint-disable-line no-continue
|
|
91
91
|
}
|
|
@@ -49,7 +49,7 @@ export class WEBGLShader extends Shader {
|
|
|
49
49
|
// PRIVATE METHODS
|
|
50
50
|
/** Compile a shader and get compilation status */
|
|
51
51
|
async _compile(source) {
|
|
52
|
-
const addGLSLVersion = (source) => source.startsWith('#version ') ? source : `#version
|
|
52
|
+
const addGLSLVersion = (source) => source.startsWith('#version ') ? source : `#version 300 es\n${source}`;
|
|
53
53
|
source = addGLSLVersion(source);
|
|
54
54
|
const { gl } = this.device;
|
|
55
55
|
gl.shaderSource(this.handle, source);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Device, TextureProps, TextureViewProps, Sampler, SamplerProps, TextureCubeFace, Texture1DData, Texture2DData, Texture3DData, TextureCubeData, TextureArrayData, TextureCubeArrayData } from '@luma.gl/core';
|
|
1
|
+
import type { Device, TextureProps, TextureViewProps, Sampler, SamplerProps, TextureCubeFace, ExternalImage, Texture1DData, Texture2DData, Texture3DData, TextureCubeData, TextureArrayData, TextureCubeArrayData } from '@luma.gl/core';
|
|
2
2
|
import { Texture } from '@luma.gl/core';
|
|
3
3
|
import { GL, GLPixelType, GLSamplerParameters, GLTexelDataFormat, GLTextureTarget } from '@luma.gl/constants';
|
|
4
4
|
import { WebGLDevice } from "../webgl-device.js";
|
|
@@ -52,9 +52,27 @@ export declare class WEBGLTexture extends Texture {
|
|
|
52
52
|
/** Update external texture (video frame or canvas) */
|
|
53
53
|
update(): void;
|
|
54
54
|
generateMipmap(params?: {}): void;
|
|
55
|
+
copyExternalImage(options: {
|
|
56
|
+
image: ExternalImage;
|
|
57
|
+
sourceX?: number;
|
|
58
|
+
sourceY?: number;
|
|
59
|
+
width?: number;
|
|
60
|
+
height?: number;
|
|
61
|
+
depth?: number;
|
|
62
|
+
mipLevel?: number;
|
|
63
|
+
x?: number;
|
|
64
|
+
y?: number;
|
|
65
|
+
z?: number;
|
|
66
|
+
aspect?: 'all' | 'stencil-only' | 'depth-only';
|
|
67
|
+
colorSpace?: 'srgb';
|
|
68
|
+
premultipliedAlpha?: boolean;
|
|
69
|
+
}): {
|
|
70
|
+
width: number;
|
|
71
|
+
height: number;
|
|
72
|
+
};
|
|
55
73
|
setTexture1DData(data: Texture1DData): void;
|
|
56
74
|
/** Set a simple texture */
|
|
57
|
-
setTexture2DData(lodData: Texture2DData, depth?: number
|
|
75
|
+
setTexture2DData(lodData: Texture2DData, depth?: number): void;
|
|
58
76
|
/**
|
|
59
77
|
* Sets a 3D texture
|
|
60
78
|
* @param data
|
|
@@ -89,7 +107,7 @@ export declare class WEBGLTexture extends Texture {
|
|
|
89
107
|
* Copy a region of data from a CPU memory buffer into this texture.
|
|
90
108
|
* @todo - GLUnpackParameters parameters
|
|
91
109
|
*/
|
|
92
|
-
protected _setMipLevel(depth: number,
|
|
110
|
+
protected _setMipLevel(depth: number, mipLevel: number, textureData: Texture2DData, glTarget?: GL): void;
|
|
93
111
|
getActiveUnit(): number;
|
|
94
112
|
bind(textureUnit?: number): number;
|
|
95
113
|
unbind(textureUnit?: number): number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webgl-texture.d.ts","sourceRoot":"","sources":["../../../src/adapter/resources/webgl-texture.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,YAAY,EAGZ,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