@luma.gl/graph 10.0.0-alpha.7 → 10.0.0-alpha.8

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.
Files changed (177) hide show
  1. package/dist/dist.dev.js +5096 -7269
  2. package/dist/dist.min.js +270 -83
  3. package/dist/experimental/index.cjs.map +2 -2
  4. package/dist/experimental/simulation/index.cjs.map +2 -2
  5. package/dist/gpu-core/compiled-gpu-graph.cjs +99 -14
  6. package/dist/gpu-core/compiled-gpu-graph.d.ts +26 -4
  7. package/dist/gpu-core/compiled-gpu-graph.d.ts.map +1 -1
  8. package/dist/gpu-core/compiled-gpu-graph.js +101 -13
  9. package/dist/gpu-core/compiled-gpu-graph.js.map +1 -1
  10. package/dist/gpu-core/gpu-command-graph-compiler.cjs +35 -3
  11. package/dist/gpu-core/gpu-command-graph-compiler.js +40 -4
  12. package/dist/gpu-core/gpu-command-graph-compiler.js.map +1 -1
  13. package/dist/gpu-core/gpu-command-graph-types.d.ts +2 -0
  14. package/dist/gpu-core/gpu-command-graph-types.d.ts.map +1 -1
  15. package/dist/gpu-core/gpu-compaction-operation.cjs +56 -0
  16. package/dist/gpu-core/gpu-compaction-operation.d.ts +20 -0
  17. package/dist/gpu-core/gpu-compaction-operation.d.ts.map +1 -0
  18. package/dist/gpu-core/gpu-compaction-operation.js +36 -0
  19. package/dist/gpu-core/gpu-compaction-operation.js.map +1 -0
  20. package/dist/gpu-core/gpu-compaction.cjs +35 -3
  21. package/dist/gpu-core/gpu-compaction.d.ts.map +1 -1
  22. package/dist/gpu-core/gpu-compaction.js +38 -3
  23. package/dist/gpu-core/gpu-compaction.js.map +1 -1
  24. package/dist/gpu-core/gpu-expression-operation.cjs +18 -2
  25. package/dist/gpu-core/gpu-expression-operation.d.ts +2 -2
  26. package/dist/gpu-core/gpu-expression-operation.d.ts.map +1 -1
  27. package/dist/gpu-core/gpu-expression-operation.js +20 -1
  28. package/dist/gpu-core/gpu-expression-operation.js.map +1 -1
  29. package/dist/gpu-core/gpu-expression-plan.cjs +140 -29
  30. package/dist/gpu-core/gpu-expression-plan.d.ts +26 -5
  31. package/dist/gpu-core/gpu-expression-plan.d.ts.map +1 -1
  32. package/dist/gpu-core/gpu-expression-plan.js +168 -34
  33. package/dist/gpu-core/gpu-expression-plan.js.map +1 -1
  34. package/dist/gpu-core/gpu-graph-compiler.cjs +100 -11
  35. package/dist/gpu-core/gpu-graph-compiler.d.ts +7 -3
  36. package/dist/gpu-core/gpu-graph-compiler.d.ts.map +1 -1
  37. package/dist/gpu-core/gpu-graph-compiler.js +109 -9
  38. package/dist/gpu-core/gpu-graph-compiler.js.map +1 -1
  39. package/dist/gpu-core/gpu-graph-declarations.cjs +120 -0
  40. package/dist/gpu-core/gpu-graph-declarations.d.ts +4 -0
  41. package/dist/gpu-core/gpu-graph-declarations.d.ts.map +1 -0
  42. package/dist/gpu-core/gpu-graph-declarations.js +110 -0
  43. package/dist/gpu-core/gpu-graph-declarations.js.map +1 -0
  44. package/dist/gpu-core/gpu-graph-validation.cjs +33 -2
  45. package/dist/gpu-core/gpu-graph-validation.d.ts.map +1 -1
  46. package/dist/gpu-core/gpu-graph-validation.js +32 -0
  47. package/dist/gpu-core/gpu-graph-validation.js.map +1 -1
  48. package/dist/gpu-core/gpu-graph-value.cjs +38 -3
  49. package/dist/gpu-core/gpu-graph-value.d.ts +50 -4
  50. package/dist/gpu-core/gpu-graph-value.d.ts.map +1 -1
  51. package/dist/gpu-core/gpu-graph-value.js +39 -1
  52. package/dist/gpu-core/gpu-graph-value.js.map +1 -1
  53. package/dist/gpu-core/gpu-graph.cjs +65 -0
  54. package/dist/gpu-core/gpu-graph.d.ts +15 -2
  55. package/dist/gpu-core/gpu-graph.d.ts.map +1 -1
  56. package/dist/gpu-core/gpu-graph.js +70 -0
  57. package/dist/gpu-core/gpu-graph.js.map +1 -1
  58. package/dist/gpu-core/gpu-operation-contract.cjs +5 -0
  59. package/dist/gpu-core/gpu-operation-contract.d.ts +10 -0
  60. package/dist/gpu-core/gpu-operation-contract.d.ts.map +1 -1
  61. package/dist/gpu-core/gpu-operation-contract.js +6 -1
  62. package/dist/gpu-core/gpu-operation-contract.js.map +1 -1
  63. package/dist/gpu-core/gpu-scan.cjs +11 -2
  64. package/dist/gpu-core/gpu-scan.d.ts.map +1 -1
  65. package/dist/gpu-core/gpu-scan.js +11 -2
  66. package/dist/gpu-core/gpu-scan.js.map +1 -1
  67. package/dist/gpu-core/gpu-texture-copy.cjs +53 -0
  68. package/dist/gpu-core/gpu-texture-copy.d.ts +7 -0
  69. package/dist/gpu-core/gpu-texture-copy.d.ts.map +1 -0
  70. package/dist/gpu-core/gpu-texture-copy.js +39 -0
  71. package/dist/gpu-core/gpu-texture-copy.js.map +1 -0
  72. package/dist/gpu-core/gpu-texture-plan.cjs +181 -0
  73. package/dist/gpu-core/gpu-texture-plan.d.ts +32 -0
  74. package/dist/gpu-core/gpu-texture-plan.d.ts.map +1 -0
  75. package/dist/gpu-core/gpu-texture-plan.js +215 -0
  76. package/dist/gpu-core/gpu-texture-plan.js.map +1 -0
  77. package/dist/gpu-core/gpu-transfer-lowering.cjs +109 -0
  78. package/dist/gpu-core/gpu-transfer-lowering.d.ts +9 -0
  79. package/dist/gpu-core/gpu-transfer-lowering.d.ts.map +1 -0
  80. package/dist/gpu-core/gpu-transfer-lowering.js +88 -0
  81. package/dist/gpu-core/gpu-transfer-lowering.js.map +1 -0
  82. package/dist/gpu-core/gpu-transfer-operation.cjs +100 -0
  83. package/dist/gpu-core/gpu-transfer-operation.d.ts +38 -0
  84. package/dist/gpu-core/gpu-transfer-operation.d.ts.map +1 -0
  85. package/dist/gpu-core/gpu-transfer-operation.js +84 -0
  86. package/dist/gpu-core/gpu-transfer-operation.js.map +1 -0
  87. package/dist/gpu-core/index.cjs +13 -0
  88. package/dist/gpu-core/index.cjs.map +3 -3
  89. package/dist/gpu-core/index.d.ts +11 -1
  90. package/dist/gpu-core/index.d.ts.map +1 -1
  91. package/dist/gpu-core/index.js +4 -1
  92. package/dist/gpu-core/index.js.map +1 -1
  93. package/dist/gpu-dggs/benchmarks.cjs.map +2 -2
  94. package/dist/gpu-graph/index.cjs +8 -0
  95. package/dist/gpu-graph/index.cjs.map +3 -3
  96. package/dist/gpu-graph/index.d.ts +5 -0
  97. package/dist/gpu-graph/index.d.ts.map +1 -1
  98. package/dist/gpu-graph/index.js +2 -0
  99. package/dist/gpu-graph/index.js.map +1 -1
  100. package/dist/gpu-graph-algorithms/benchmarks.cjs.map +3 -3
  101. package/dist/gpu-graph-algorithms/index.cjs.map +2 -2
  102. package/dist/gpu-physics/gpu-rigid-body-world.cjs +56 -17
  103. package/dist/gpu-physics/gpu-rigid-body-world.d.ts +1 -1
  104. package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -1
  105. package/dist/gpu-physics/gpu-rigid-body-world.js +42 -2
  106. package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -1
  107. package/dist/gpu-physics/index.cjs.map +2 -2
  108. package/dist/gpu-physics/rigid-body-joints.cjs +6 -1
  109. package/dist/gpu-physics/rigid-body-joints.d.ts.map +1 -1
  110. package/dist/gpu-physics/rigid-body-joints.js +9 -1
  111. package/dist/gpu-physics/rigid-body-joints.js.map +1 -1
  112. package/dist/gpu-physics/rigid-body-parallel-shaders.cjs +4 -2
  113. package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts.map +1 -1
  114. package/dist/gpu-physics/rigid-body-parallel-shaders.js +4 -2
  115. package/dist/gpu-physics/rigid-body-parallel-shaders.js.map +1 -1
  116. package/dist/gpu-physics/rigid-body-shaders.cjs +1 -0
  117. package/dist/gpu-physics/rigid-body-shaders.d.ts.map +1 -1
  118. package/dist/gpu-physics/rigid-body-shaders.js +1 -0
  119. package/dist/gpu-physics/rigid-body-shaders.js.map +1 -1
  120. package/dist/gpu-pointcloud/index.cjs.map +1 -1
  121. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.cjs +54 -7
  122. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts +11 -4
  123. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts.map +1 -1
  124. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js +56 -4
  125. package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js.map +1 -1
  126. package/dist/gpu-simple-graph/gpu-simple-graph.cjs +16 -0
  127. package/dist/gpu-simple-graph/gpu-simple-graph.d.ts +11 -4
  128. package/dist/gpu-simple-graph/gpu-simple-graph.d.ts.map +1 -1
  129. package/dist/gpu-simple-graph/gpu-simple-graph.js +18 -0
  130. package/dist/gpu-simple-graph/gpu-simple-graph.js.map +1 -1
  131. package/dist/gpu-simple-graph/gpu-transfer-execution.cjs +82 -0
  132. package/dist/gpu-simple-graph/gpu-transfer-execution.d.ts +7 -0
  133. package/dist/gpu-simple-graph/gpu-transfer-execution.d.ts.map +1 -0
  134. package/dist/gpu-simple-graph/gpu-transfer-execution.js +64 -0
  135. package/dist/gpu-simple-graph/gpu-transfer-execution.js.map +1 -0
  136. package/dist/gpu-simple-graph/index.cjs +3 -0
  137. package/dist/gpu-simple-graph/index.cjs.map +3 -3
  138. package/dist/gpu-simple-graph/index.d.ts +3 -0
  139. package/dist/gpu-simple-graph/index.d.ts.map +1 -1
  140. package/dist/gpu-simple-graph/index.js +1 -0
  141. package/dist/gpu-simple-graph/index.js.map +1 -1
  142. package/dist/index.cjs +13 -0
  143. package/dist/index.cjs.map +3 -3
  144. package/dist/index.d.ts +11 -1
  145. package/dist/index.d.ts.map +1 -1
  146. package/dist/index.js +4 -1
  147. package/dist/index.js.map +1 -1
  148. package/package.json +6 -7
  149. package/src/gpu-core/compiled-gpu-graph.ts +118 -15
  150. package/src/gpu-core/gpu-command-graph-compiler.ts +38 -6
  151. package/src/gpu-core/gpu-command-graph-types.ts +2 -0
  152. package/src/gpu-core/gpu-compaction-operation.ts +49 -0
  153. package/src/gpu-core/gpu-compaction.ts +47 -3
  154. package/src/gpu-core/gpu-expression-operation.ts +23 -2
  155. package/src/gpu-core/gpu-expression-plan.ts +247 -44
  156. package/src/gpu-core/gpu-graph-compiler.ts +130 -11
  157. package/src/gpu-core/gpu-graph-declarations.ts +137 -0
  158. package/src/gpu-core/gpu-graph-validation.ts +32 -0
  159. package/src/gpu-core/gpu-graph-value.ts +88 -4
  160. package/src/gpu-core/gpu-graph.ts +104 -2
  161. package/src/gpu-core/gpu-operation-contract.ts +18 -0
  162. package/src/gpu-core/gpu-scan.ts +15 -2
  163. package/src/gpu-core/gpu-texture-copy.ts +51 -0
  164. package/src/gpu-core/gpu-texture-plan.ts +248 -0
  165. package/src/gpu-core/gpu-transfer-lowering.ts +102 -0
  166. package/src/gpu-core/gpu-transfer-operation.ts +110 -0
  167. package/src/gpu-core/index.ts +22 -1
  168. package/src/gpu-graph/index.ts +15 -0
  169. package/src/gpu-physics/gpu-rigid-body-world.ts +44 -3
  170. package/src/gpu-physics/rigid-body-joints.ts +11 -2
  171. package/src/gpu-physics/rigid-body-parallel-shaders.ts +4 -2
  172. package/src/gpu-physics/rigid-body-shaders.ts +1 -0
  173. package/src/gpu-simple-graph/compiled-gpu-expression-graph.ts +90 -8
  174. package/src/gpu-simple-graph/gpu-simple-graph.ts +56 -3
  175. package/src/gpu-simple-graph/gpu-transfer-execution.ts +73 -0
  176. package/src/gpu-simple-graph/index.ts +9 -0
  177. package/src/index.ts +29 -1
@@ -0,0 +1,88 @@
1
+ // luma.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
+ import { encodeTextureCopy } from "./gpu-texture-copy.js";
5
+ import { assert, Buffer } from '@luma.gl/core';
6
+ /** WebGPU transfers participate in command ordering and caller-owned encoding. @internal */
7
+ export function lowerGPUUpload(operation, context) {
8
+ const output = context.resolveVector(operation.output);
9
+ const chunks = operation.getData();
10
+ for (const [index, destination] of output.data.entries()) {
11
+ if (!destination.length)
12
+ continue;
13
+ const data = chunks[index];
14
+ context.graph.addCopyPass({
15
+ id: `${operation.id}-${index}`,
16
+ resources: [{ buffer: destination, usage: 'copy-destination' }],
17
+ compile: ({ device }) => {
18
+ const staging = device.createBuffer({ data, usage: Buffer.COPY_SRC });
19
+ return {
20
+ encode: ({ commandEncoder, getBuffer }) => {
21
+ const packed = destination.byteStride === destination.rowByteLength;
22
+ for (let row = 0; row < destination.length; row += packed ? destination.length : 1) {
23
+ commandEncoder.copyBufferToBuffer({
24
+ sourceBuffer: staging,
25
+ sourceOffset: row * destination.rowByteLength,
26
+ destinationBuffer: getBuffer(destination),
27
+ destinationOffset: destination.byteOffset + row * destination.byteStride,
28
+ size: packed ? data.byteLength : destination.rowByteLength
29
+ });
30
+ }
31
+ },
32
+ destroy: () => staging.destroy()
33
+ };
34
+ }
35
+ });
36
+ }
37
+ }
38
+ /** @internal */
39
+ export function lowerGPUCopy(operation, context) {
40
+ const input = context.resolveVector(operation.input);
41
+ const output = context.resolveVector(operation.output);
42
+ // Copy preserves each chunk and row; no repartitioning or format conversion.
43
+ assert(input.format === output.format && input.data.length === output.data.length);
44
+ for (const [index, source] of input.data.entries()) {
45
+ const destination = output.data[index];
46
+ assert(source.length === destination.length);
47
+ if (!source.length)
48
+ continue;
49
+ context.graph.addCopyPass({
50
+ id: `${operation.id}-${index}`,
51
+ resources: [
52
+ { buffer: source, usage: 'copy-source' },
53
+ { buffer: destination, usage: 'copy-destination' }
54
+ ],
55
+ compile: () => ({
56
+ encode: ({ commandEncoder, getBuffer }) => {
57
+ const packed = source.byteStride === source.rowByteLength &&
58
+ destination.byteStride === destination.rowByteLength;
59
+ for (let row = 0; row < source.length; row += packed ? source.length : 1) {
60
+ commandEncoder.copyBufferToBuffer({
61
+ sourceBuffer: getBuffer(source),
62
+ sourceOffset: source.byteOffset + row * source.byteStride,
63
+ destinationBuffer: getBuffer(destination),
64
+ destinationOffset: destination.byteOffset + row * destination.byteStride,
65
+ size: source.rowByteLength * (packed ? source.length : 1)
66
+ });
67
+ }
68
+ }
69
+ })
70
+ });
71
+ }
72
+ }
73
+ /** Texture copies use the same operation and preserve selected mip/layer ranges. @internal */
74
+ export function lowerGPUTextureCopy(operation, context) {
75
+ const input = context.resolveTextureView(operation.input);
76
+ const output = context.resolveTextureView(operation.output);
77
+ context.graph.addCopyPass({
78
+ id: operation.id,
79
+ resources: [
80
+ { texture: input, usage: 'copy-source' },
81
+ { texture: output, usage: 'copy-destination' }
82
+ ],
83
+ compile: () => ({
84
+ encode: ({ commandEncoder, getTextureView }) => encodeTextureCopy(commandEncoder, getTextureView(input), getTextureView(output))
85
+ })
86
+ });
87
+ }
88
+ //# sourceMappingURL=gpu-transfer-lowering.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpu-transfer-lowering.js","sourceRoot":"","sources":["../../src/gpu-core/gpu-transfer-lowering.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAE5D,OAAO,EAAC,iBAAiB,EAAC,8BAA2B;AACrD,OAAO,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAI7C,4FAA4F;AAC5F,MAAM,UAAU,cAAc,CAC5B,SAA6B,EAC7B,OAAgD;IAEhD,MAAM,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC;IACnC,KAAK,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;QACzD,IAAI,CAAC,WAAW,CAAC,MAAM;YAAE,SAAS;QAClC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3B,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;YACxB,EAAE,EAAE,GAAG,SAAS,CAAC,EAAE,IAAI,KAAK,EAAE;YAC9B,SAAS,EAAE,CAAC,EAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,kBAAkB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MAAM,CAAC,UAAU;4BACzD,iBAAiB,EAAE,SAAS,CAAC,WAAW,CAAC;4BACzC,iBAAiB,EAAE,WAAW,CAAC,UAAU,GAAG,GAAG,GAAG,WAAW,CAAC,UAAU;4BACxE,IAAI,EAAE,MAAM,CAAC,aAAa,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;yBAC1D,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;aACF,CAAC;SACH,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,mBAAmB,CACjC,SAA2B,EAC3B,OAAgD;IAEhD,MAAM,KAAK,GAAG,OAAO,CAAC,kBAAkB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC1D,MAAM,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC5D,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;QACxB,EAAE,EAAE,SAAS,CAAC,EAAE;QAChB,SAAS,EAAE;YACT,EAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAC;YACtC,EAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,EAAC;SAC7C;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;YACd,MAAM,EAAE,CAAC,EAAC,cAAc,EAAE,cAAc,EAAC,EAAE,EAAE,CAC3C,iBAAiB,CAAC,cAAc,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;SACnF,CAAC;KACH,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,100 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var gpu_transfer_operation_exports = {};
19
+ __export(gpu_transfer_operation_exports, {
20
+ GPUCopyOperation: () => GPUCopyOperation,
21
+ GPUUploadOperation: () => GPUUploadOperation
22
+ });
23
+ module.exports = __toCommonJS(gpu_transfer_operation_exports);
24
+ var import_core = require("@luma.gl/core");
25
+ var import_gpu_data = require("@luma.gl/graph/gpu-data");
26
+ var import_gpu_graph_value = require("./gpu-graph-value.cjs");
27
+ class GPUUploadOperation {
28
+ type = "vector-upload";
29
+ id;
30
+ output;
31
+ format;
32
+ chunks;
33
+ chunkLengths;
34
+ constructor(props) {
35
+ this.id = props.id ?? `${props.output}-upload`;
36
+ this.output = props.output;
37
+ this.format = props.format;
38
+ const info = (0, import_gpu_data.getGPUVectorFormatInfo)(props.format);
39
+ const chunks = Array.isArray(props.data) ? props.data : [props.data];
40
+ const ValueType = info.signedDataType === "float32" ? Float32Array : info.signedDataType === "uint32" ? Uint32Array : Int32Array;
41
+ (0, import_core.assert)(chunks.every((chunk) => chunk instanceof ValueType && chunk.byteLength % info.byteLength === 0));
42
+ this.chunks = chunks.map((chunk) => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength).slice());
43
+ this.chunkLengths = Object.freeze(this.chunks.map((chunk) => chunk.byteLength / info.byteLength));
44
+ }
45
+ /** Backend snapshot; callers cannot mutate the operation's stored data. @internal */
46
+ getData() {
47
+ return this.chunks.map((chunk) => chunk.slice());
48
+ }
49
+ get contract() {
50
+ const shape = {
51
+ length: this.chunkLengths.reduce((sum, length) => sum + length, 0),
52
+ chunkLengths: this.chunkLengths
53
+ };
54
+ return {
55
+ outputs: { [this.output]: import_gpu_graph_value.gpuGraph.vector(this.format, shape) },
56
+ values: [{ value: this.output, access: "write", shape }]
57
+ };
58
+ }
59
+ }
60
+ class GPUCopyOperation {
61
+ type = "vector-copy";
62
+ id;
63
+ input;
64
+ output;
65
+ constructor(props) {
66
+ this.id = props.id ?? `${props.output}-copy`;
67
+ this.input = props.input;
68
+ this.output = props.output;
69
+ }
70
+ get contract() {
71
+ return {
72
+ outputs: ({ getValue }) => {
73
+ const input = getValue(this.input);
74
+ if (input.type === "texture")
75
+ return { [this.output]: import_gpu_graph_value.gpuGraph.texture({ ...input, extent: { like: this.input } }) };
76
+ (0, import_core.assert)(input.type === "vector");
77
+ return {
78
+ [this.output]: import_gpu_graph_value.gpuGraph.vector(input.format, {
79
+ length: input.length,
80
+ chunkLengths: input.chunkLengths
81
+ })
82
+ };
83
+ },
84
+ values: [
85
+ { value: this.input, access: "read", textureUsage: "copy-source" },
86
+ {
87
+ value: this.output,
88
+ access: "write",
89
+ shape: { like: this.input },
90
+ textureUsage: "copy-destination"
91
+ }
92
+ ]
93
+ };
94
+ }
95
+ }
96
+ // Annotate the CommonJS export names for ESM import in node:
97
+ 0 && (module.exports = {
98
+ GPUCopyOperation,
99
+ GPUUploadOperation
100
+ });
@@ -0,0 +1,38 @@
1
+ import { type GPUGraphVectorFormat } from "./gpu-graph-value.js";
2
+ import type { GPUOperation } from "./gpu-operation.js";
3
+ import type { GPUOperationContract } from "./gpu-operation-contract.js";
4
+ export type GPUUploadOperationProps = {
5
+ id?: string;
6
+ output: string;
7
+ format: GPUGraphVectorFormat;
8
+ /** Packed rows, snapshotted at construction. An array preserves explicit chunk boundaries. */
9
+ data: Float32Array | Uint32Array | Int32Array | readonly (Float32Array | Uint32Array | Int32Array)[];
10
+ };
11
+ /** Upload immutable host data into an operation-owned result on each execution. */
12
+ export declare class GPUUploadOperation implements GPUOperation {
13
+ readonly type = "vector-upload";
14
+ readonly id: string;
15
+ readonly output: string;
16
+ readonly format: GPUGraphVectorFormat;
17
+ private readonly chunks;
18
+ readonly chunkLengths: readonly number[];
19
+ constructor(props: GPUUploadOperationProps);
20
+ /** Backend snapshot; callers cannot mutate the operation's stored data. @internal */
21
+ getData(): readonly Uint8Array[];
22
+ get contract(): GPUOperationContract;
23
+ }
24
+ export type GPUCopyOperationProps = {
25
+ id?: string;
26
+ input: string;
27
+ output: string;
28
+ };
29
+ /** Copy every row into independent storage, preserving format and chunk boundaries. */
30
+ export declare class GPUCopyOperation implements GPUOperation {
31
+ readonly type = "vector-copy";
32
+ readonly id: string;
33
+ readonly input: string;
34
+ readonly output: string;
35
+ constructor(props: GPUCopyOperationProps);
36
+ get contract(): GPUOperationContract;
37
+ }
38
+ //# sourceMappingURL=gpu-transfer-operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpu-transfer-operation.d.ts","sourceRoot":"","sources":["../../src/gpu-core/gpu-transfer-operation.ts"],"names":[],"mappings":"AAMA,OAAO,EAAW,KAAK,oBAAoB,EAAC,6BAA0B;AACtE,OAAO,KAAK,EAAC,YAAY,EAAC,2BAAwB;AAClD,OAAO,KAAK,EAAC,oBAAoB,EAAC,oCAAiC;AAEnE,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,oBAAoB,CAAC;IAC7B,8FAA8F;IAC9F,IAAI,EACA,YAAY,GACZ,WAAW,GACX,UAAU,GACV,SAAS,CAAC,YAAY,GAAG,WAAW,GAAG,UAAU,CAAC,EAAE,CAAC;CAC1D,CAAC;AAEF,mFAAmF;AACnF,qBAAa,kBAAmB,YAAW,YAAY;IACrD,QAAQ,CAAC,IAAI,mBAAmB;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAC/C,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;gBAE7B,KAAK,EAAE,uBAAuB;IAsB1C,qFAAqF;IACrF,OAAO,IAAI,SAAS,UAAU,EAAE;IAIhC,IAAI,QAAQ,IAAI,oBAAoB,CASnC;CACF;AAED,MAAM,MAAM,qBAAqB,GAAG;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,CAAC;AAEjF,uFAAuF;AACvF,qBAAa,gBAAiB,YAAW,YAAY;IACnD,QAAQ,CAAC,IAAI,iBAAiB;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBACZ,KAAK,EAAE,qBAAqB;IAKxC,IAAI,QAAQ,IAAI,oBAAoB,CAyBnC;CACF"}
@@ -0,0 +1,84 @@
1
+ // luma.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
+ import { assert } from '@luma.gl/core';
5
+ import { getGPUVectorFormatInfo } from '@luma.gl/graph/gpu-data';
6
+ import { gpuGraph } from "./gpu-graph-value.js";
7
+ /** Upload immutable host data into an operation-owned result on each execution. */
8
+ export class GPUUploadOperation {
9
+ type = 'vector-upload';
10
+ id;
11
+ output;
12
+ format;
13
+ chunks;
14
+ chunkLengths;
15
+ constructor(props) {
16
+ this.id = props.id ?? `${props.output}-upload`;
17
+ this.output = props.output;
18
+ this.format = props.format;
19
+ const info = getGPUVectorFormatInfo(props.format);
20
+ const chunks = Array.isArray(props.data) ? props.data : [props.data];
21
+ const ValueType = info.signedDataType === 'float32'
22
+ ? Float32Array
23
+ : info.signedDataType === 'uint32'
24
+ ? Uint32Array
25
+ : Int32Array;
26
+ // Host component types and complete rows must agree with the declared memory format.
27
+ assert(chunks.every(chunk => chunk instanceof ValueType && chunk.byteLength % info.byteLength === 0));
28
+ this.chunks = chunks.map(chunk => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength).slice());
29
+ this.chunkLengths = Object.freeze(this.chunks.map(chunk => chunk.byteLength / info.byteLength));
30
+ }
31
+ /** Backend snapshot; callers cannot mutate the operation's stored data. @internal */
32
+ getData() {
33
+ return this.chunks.map(chunk => chunk.slice());
34
+ }
35
+ get contract() {
36
+ const shape = {
37
+ length: this.chunkLengths.reduce((sum, length) => sum + length, 0),
38
+ chunkLengths: this.chunkLengths
39
+ };
40
+ return {
41
+ outputs: { [this.output]: gpuGraph.vector(this.format, shape) },
42
+ values: [{ value: this.output, access: 'write', shape }]
43
+ };
44
+ }
45
+ }
46
+ /** Copy every row into independent storage, preserving format and chunk boundaries. */
47
+ export class GPUCopyOperation {
48
+ type = 'vector-copy';
49
+ id;
50
+ input;
51
+ output;
52
+ constructor(props) {
53
+ this.id = props.id ?? `${props.output}-copy`;
54
+ this.input = props.input;
55
+ this.output = props.output;
56
+ }
57
+ get contract() {
58
+ return {
59
+ outputs: ({ getValue }) => {
60
+ const input = getValue(this.input);
61
+ // Copy is a vector transfer, not a scalar assignment or conversion.
62
+ if (input.type === 'texture')
63
+ return { [this.output]: gpuGraph.texture({ ...input, extent: { like: this.input } }) };
64
+ assert(input.type === 'vector');
65
+ return {
66
+ [this.output]: gpuGraph.vector(input.format, {
67
+ length: input.length,
68
+ chunkLengths: input.chunkLengths
69
+ })
70
+ };
71
+ },
72
+ values: [
73
+ { value: this.input, access: 'read', textureUsage: 'copy-source' },
74
+ {
75
+ value: this.output,
76
+ access: 'write',
77
+ shape: { like: this.input },
78
+ textureUsage: 'copy-destination'
79
+ }
80
+ ]
81
+ };
82
+ }
83
+ }
84
+ //# sourceMappingURL=gpu-transfer-operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpu-transfer-operation.js","sourceRoot":"","sources":["../../src/gpu-core/gpu-transfer-operation.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAE5D,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AACrC,OAAO,EAAC,sBAAsB,EAAC,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAC,QAAQ,EAA4B,6BAA0B;AAgBtE,mFAAmF;AACnF,MAAM,OAAO,kBAAkB;IACpB,IAAI,GAAG,eAAe,CAAC;IACvB,EAAE,CAAS;IACX,MAAM,CAAS;IACf,MAAM,CAAuB;IACrB,MAAM,CAAwB;IACtC,YAAY,CAAoB;IAEzC,YAAY,KAA8B;QACxC,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,MAAM,SAAS,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,MAAM,IAAI,GAAG,sBAAsB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACrE,MAAM,SAAS,GACb,IAAI,CAAC,cAAc,KAAK,SAAS;YAC/B,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,IAAI,CAAC,cAAc,KAAK,QAAQ;gBAChC,CAAC,CAAC,WAAW;gBACb,CAAC,CAAC,UAAU,CAAC;QACnB,qFAAqF;QACrF,MAAM,CACJ,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,SAAS,IAAI,KAAK,CAA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
37
37
  GPUCommandGraphExecutionBudgetController: () => import_gpu_command_graph_budget_controller.GPUCommandGraphExecutionBudgetController,
38
38
  GPUCommandGraphInspector: () => import_gpu_command_graph_inspector.GPUCommandGraphInspector,
39
39
  GPUCompaction: () => import_gpu_compaction.GPUCompaction,
40
+ GPUCompactionOperation: () => import_gpu_compaction_operation.GPUCompactionOperation,
40
41
  GPUCompositeOperation: () => import_gpu_operation.GPUCompositeOperation,
41
42
  GPUConditionalOperation: () => import_gpu_control_flow_operation.GPUConditionalOperation,
42
43
  GPUConvolution: () => import_gpu_convolution.GPUConvolution,
44
+ GPUCopyOperation: () => import_gpu_transfer_operation.GPUCopyOperation,
43
45
  GPUElementwise: () => import_gpu_elementwise.GPUElementwise,
44
46
  GPUExpressionOperation: () => import_gpu_expression_operation.GPUExpressionOperation,
45
47
  GPUFFT1D: () => import_gpu_fft1d.GPUFFT1D,
@@ -102,6 +104,7 @@ __export(gpu_core_exports, {
102
104
  GPUTranspose: () => import_gpu_transpose.GPUTranspose,
103
105
  GPUUint32Gather: () => import_gpu_uint32_gather.GPUUint32Gather,
104
106
  GPUUnique: () => import_gpu_run_length_encode.GPUUnique,
107
+ GPUUploadOperation: () => import_gpu_transfer_operation.GPUUploadOperation,
105
108
  GPUVirtualGeometrySelection: () => import_gpu_virtual_geometry_selection.GPUVirtualGeometrySelection,
106
109
  GPUVisibilityWorkflow: () => import_gpu_visibility_workflow.GPUVisibilityWorkflow,
107
110
  GPU_CONVOLUTION_AUTO_DIRECT_KERNEL_AREA: () => import_gpu_convolution.GPU_CONVOLUTION_AUTO_DIRECT_KERNEL_AREA,
@@ -137,6 +140,7 @@ __export(gpu_core_exports, {
137
140
  GraphTextureView: () => import_gpu_command_graph.GraphTextureView,
138
141
  GraphVectorView: () => import_gpu_command_graph.GraphVectorView,
139
142
  INDEX_PICKING_READBACK_BYTE_LENGTH: () => import_gpu_index_picking_target.INDEX_PICKING_READBACK_BYTE_LENGTH,
143
+ PreparedGPUGraphExecution: () => import_compiled_gpu_graph.PreparedGPUGraphExecution,
140
144
  addGPUCommandNode: () => import_gpu_command_node.addGPUCommandNode,
141
145
  addGPUCommandNodes: () => import_gpu_command_node.addGPUCommandNodes,
142
146
  composite: () => import_gpu_graph.composite,
@@ -165,6 +169,7 @@ __export(gpu_core_exports, {
165
169
  getViewBinding: () => import_graph_data_view_utils.getViewBinding,
166
170
  getViewBindingRange: () => import_graph_data_view_utils.getViewBindingRange,
167
171
  getViewElementOffset: () => import_graph_data_view_utils.getViewElementOffset,
172
+ gpuGraph: () => import_gpu_graph_value2.gpuGraph,
168
173
  inspectGPUGraphCompilation: () => import_gpu_graph_inspector.inspectGPUGraphCompilation,
169
174
  isGPUCommandNodeProducer: () => import_gpu_operation.isGPUCommandNodeProducer,
170
175
  isGPUControlFlowOperation: () => import_gpu_control_flow_operation.isGPUControlFlowOperation,
@@ -279,6 +284,9 @@ var import_gpu_run_length_encode = require("./gpu-run-length-encode.cjs");
279
284
  var import_gpu_incremental_execution = require("./gpu-incremental-execution.cjs");
280
285
  var import_gpu_expression_operation = require("./gpu-expression-operation.cjs");
281
286
  var import_compiled_gpu_graph = require("./compiled-gpu-graph.cjs");
287
+ var import_gpu_graph_value2 = require("./gpu-graph-value.cjs");
288
+ var import_gpu_transfer_operation = require("./gpu-transfer-operation.cjs");
289
+ var import_gpu_compaction_operation = require("./gpu-compaction-operation.cjs");
282
290
  // Annotate the CommonJS export names for ESM import in node:
283
291
  0 && (module.exports = {
284
292
  CompiledGPUCommandGraph,
@@ -301,9 +309,11 @@ var import_compiled_gpu_graph = require("./compiled-gpu-graph.cjs");
301
309
  GPUCommandGraphExecutionBudgetController,
302
310
  GPUCommandGraphInspector,
303
311
  GPUCompaction,
312
+ GPUCompactionOperation,
304
313
  GPUCompositeOperation,
305
314
  GPUConditionalOperation,
306
315
  GPUConvolution,
316
+ GPUCopyOperation,
307
317
  GPUElementwise,
308
318
  GPUExpressionOperation,
309
319
  GPUFFT1D,
@@ -366,6 +376,7 @@ var import_compiled_gpu_graph = require("./compiled-gpu-graph.cjs");
366
376
  GPUTranspose,
367
377
  GPUUint32Gather,
368
378
  GPUUnique,
379
+ GPUUploadOperation,
369
380
  GPUVirtualGeometrySelection,
370
381
  GPUVisibilityWorkflow,
371
382
  GPU_CONVOLUTION_AUTO_DIRECT_KERNEL_AREA,
@@ -401,6 +412,7 @@ var import_compiled_gpu_graph = require("./compiled-gpu-graph.cjs");
401
412
  GraphTextureView,
402
413
  GraphVectorView,
403
414
  INDEX_PICKING_READBACK_BYTE_LENGTH,
415
+ PreparedGPUGraphExecution,
404
416
  addGPUCommandNode,
405
417
  addGPUCommandNodes,
406
418
  composite,
@@ -429,6 +441,7 @@ var import_compiled_gpu_graph = require("./compiled-gpu-graph.cjs");
429
441
  getViewBinding,
430
442
  getViewBindingRange,
431
443
  getViewElementOffset,
444
+ gpuGraph,
432
445
  inspectGPUGraphCompilation,
433
446
  isGPUCommandNodeProducer,
434
447
  isGPUControlFlowOperation,