@luma.gl/graph 10.0.0-alpha.5 → 10.0.0-alpha.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/LICENSE +38 -0
- package/README.md +7 -1
- package/dist/arrow/dggs/dggs-gpu-polygons.cjs +667 -0
- package/dist/arrow/dggs/dggs-gpu-polygons.d.ts +75 -0
- package/dist/arrow/dggs/dggs-gpu-polygons.d.ts.map +1 -0
- package/dist/arrow/dggs/dggs-gpu-polygons.js +651 -0
- package/dist/arrow/dggs/dggs-gpu-polygons.js.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.cjs +411 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts +31 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js +395 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.cjs +304 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts +32 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js +293 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js.map +1 -0
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.cjs +232 -0
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.d.ts +54 -0
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.d.ts.map +1 -0
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js +222 -0
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.cjs +314 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts +42 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js +318 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.cjs +204 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts +30 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.js +195 -0
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.js.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-table-adapters.cjs +257 -0
- package/dist/arrow/gpu/arrow-gpu-table-adapters.d.ts +45 -0
- package/dist/arrow/gpu/arrow-gpu-table-adapters.d.ts.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-table-adapters.js +257 -0
- package/dist/arrow/gpu/arrow-gpu-table-adapters.js.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-table-conversion.cjs +230 -0
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts +71 -0
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts.map +1 -0
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js +215 -0
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js.map +1 -0
- package/dist/arrow/gpu/arrow-input-schema.cjs +36 -0
- package/dist/arrow/gpu/arrow-input-schema.d.ts +41 -0
- package/dist/arrow/gpu/arrow-input-schema.d.ts.map +1 -0
- package/dist/arrow/gpu/arrow-input-schema.js +17 -0
- package/dist/arrow/gpu/arrow-input-schema.js.map +1 -0
- package/dist/arrow/index.cjs +90 -0
- package/dist/arrow/index.cjs.map +6 -0
- package/dist/arrow/index.d.ts +9 -0
- package/dist/arrow/index.d.ts.map +1 -0
- package/dist/arrow/index.js +12 -0
- package/dist/arrow/index.js.map +1 -0
- package/dist/arrow/internal.cjs +30 -0
- package/dist/arrow/internal.cjs.map +6 -0
- package/dist/arrow/internal.d.ts +19 -0
- package/dist/arrow/internal.d.ts.map +1 -0
- package/dist/arrow/internal.js +7 -0
- package/dist/arrow/internal.js.map +1 -0
- package/dist/dist.dev.js +283 -12
- package/dist/dist.min.js +29 -29
- package/dist/geospatial/geospatial-utils.cjs +12 -11
- package/dist/geospatial/geospatial-utils.d.ts +1 -1
- package/dist/geospatial/geospatial-utils.d.ts.map +1 -1
- package/dist/geospatial/geospatial-utils.js +3 -2
- package/dist/geospatial/geospatial-utils.js.map +1 -1
- package/dist/geospatial/index.cjs.map +2 -2
- package/dist/gpu-a5/index.cjs.map +1 -1
- package/dist/gpu-dggs/benchmarks.cjs.map +1 -1
- package/dist/gpu-dggs/gpu-dggs-cell-projection.cjs +2 -2
- package/dist/gpu-dggs/gpu-dggs-cell-projection.js +1 -1
- package/dist/gpu-dggs/gpu-dggs-cell-projection.js.map +1 -1
- package/dist/gpu-dggs/index.cjs.map +1 -1
- package/dist/gpu-h3/index.cjs.map +1 -1
- package/dist/gpu-project/benchmarks.cjs.map +2 -2
- package/dist/gpu-project/crs.cjs.map +2 -2
- package/dist/gpu-project/index.cjs.map +2 -2
- package/dist/gpu-project/projection-program.cjs +2 -2
- package/dist/gpu-project/projection-program.d.ts +1 -1
- package/dist/gpu-project/projection-program.d.ts.map +1 -1
- package/dist/gpu-project/projection-program.js +1 -1
- package/dist/gpu-project/projection-program.js.map +1 -1
- package/dist/gpu-sql/lu-sql.d.ts +1 -1
- package/dist/gpu-sql/lu-sql.js +1 -1
- package/dist/gpu-tables/engine/gpu-table-shader-bindings.d.ts +1 -1
- package/dist/gpu-tables/engine/gpu-table-shader-bindings.d.ts.map +1 -1
- package/dist/gpu-vector-search/index.cjs.map +1 -1
- package/dist/utils/assemble-compute-kernel.cjs +2 -2
- package/dist/utils/assemble-compute-kernel.d.ts +2 -1
- package/dist/utils/assemble-compute-kernel.d.ts.map +1 -1
- package/dist/utils/assemble-compute-kernel.js +2 -2
- package/dist/utils/assemble-compute-kernel.js.map +1 -1
- package/package.json +19 -7
- package/src/arrow/dggs/dggs-gpu-polygons.ts +820 -0
- package/src/arrow/geoarrow/arrow-geoarrow-adapter.ts +519 -0
- package/src/arrow/geoarrow/arrow-geoarrow-conversion.ts +415 -0
- package/src/arrow/geoarrow/arrow-polygon-tessellation.ts +369 -0
- package/src/arrow/gpu/arrow-gpu-analytics-adapters.ts +474 -0
- package/src/arrow/gpu/arrow-gpu-analytics-readback.ts +294 -0
- package/src/arrow/gpu/arrow-gpu-table-adapters.ts +378 -0
- package/src/arrow/gpu/arrow-gpu-table-conversion.ts +324 -0
- package/src/arrow/gpu/arrow-input-schema.ts +98 -0
- package/src/arrow/index.ts +79 -0
- package/src/arrow/internal.ts +23 -0
- package/src/geospatial/geospatial-utils.ts +3 -7
- package/src/gpu-dggs/gpu-dggs-cell-projection.ts +1 -1
- package/src/gpu-project/projection-program.ts +1 -1
- package/src/gpu-sql/lu-sql.ts +1 -1
- package/src/gpu-tables/engine/gpu-table-shader-bindings.ts +1 -1
- package/src/utils/assemble-compute-kernel.ts +3 -7
package/dist/dist.dev.js
CHANGED
|
@@ -1252,6 +1252,288 @@ var __exports__ = (() => {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
});
|
|
1254
1254
|
|
|
1255
|
+
// ../shaders/src/types/primitive-data-types.ts
|
|
1256
|
+
var init_primitive_data_types = __esm({
|
|
1257
|
+
"../shaders/src/types/primitive-data-types.ts"() {
|
|
1258
|
+
"use strict";
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1261
|
+
|
|
1262
|
+
// ../shaders/src/types/shader-types.ts
|
|
1263
|
+
var init_shader_types = __esm({
|
|
1264
|
+
"../shaders/src/types/shader-types.ts"() {
|
|
1265
|
+
"use strict";
|
|
1266
|
+
}
|
|
1267
|
+
});
|
|
1268
|
+
|
|
1269
|
+
// ../shaders/src/types/shader-type-decoder.ts
|
|
1270
|
+
function getVariableShaderTypeInfo(format) {
|
|
1271
|
+
const resolvedFormat = resolveVariableShaderTypeAlias(format);
|
|
1272
|
+
const decoded = UNIFORM_FORMATS[resolvedFormat];
|
|
1273
|
+
if (!decoded) {
|
|
1274
|
+
throw new Error(`Unsupported variable shader type: ${format}`);
|
|
1275
|
+
}
|
|
1276
|
+
return decoded;
|
|
1277
|
+
}
|
|
1278
|
+
function getAttributeShaderTypeInfo(attributeType) {
|
|
1279
|
+
const resolvedAttributeType = resolveAttributeShaderTypeAlias(attributeType);
|
|
1280
|
+
const decoded = TYPE_INFO[resolvedAttributeType];
|
|
1281
|
+
if (!decoded) {
|
|
1282
|
+
throw new Error(`Unsupported attribute shader type: ${attributeType}`);
|
|
1283
|
+
}
|
|
1284
|
+
const [primitiveType, components] = decoded;
|
|
1285
|
+
const integer = primitiveType === "i32" || primitiveType === "u32";
|
|
1286
|
+
const signed = primitiveType !== "u32";
|
|
1287
|
+
const byteLength = PRIMITIVE_TYPE_SIZES[primitiveType] * components;
|
|
1288
|
+
return {
|
|
1289
|
+
primitiveType,
|
|
1290
|
+
components,
|
|
1291
|
+
byteLength,
|
|
1292
|
+
integer,
|
|
1293
|
+
signed
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
function makeShaderAttributeType(primitiveType, components) {
|
|
1297
|
+
return components === 1 ? primitiveType : `vec${components}<${primitiveType}>`;
|
|
1298
|
+
}
|
|
1299
|
+
function resolveAttributeShaderTypeAlias(alias) {
|
|
1300
|
+
return WGSL_ATTRIBUTE_TYPE_ALIAS_MAP[alias] || alias;
|
|
1301
|
+
}
|
|
1302
|
+
function resolveVariableShaderTypeAlias(alias) {
|
|
1303
|
+
return WGSL_VARIABLE_TYPE_ALIAS_MAP[alias] || alias;
|
|
1304
|
+
}
|
|
1305
|
+
var ShaderTypeDecoder, shaderTypeDecoder, PRIMITIVE_TYPE_SIZES, TYPE_INFO, UNIFORM_FORMATS, WGSL_ATTRIBUTE_TYPE_ALIAS_MAP, WGSL_VARIABLE_TYPE_ALIAS_MAP;
|
|
1306
|
+
var init_shader_type_decoder = __esm({
|
|
1307
|
+
"../shaders/src/types/shader-type-decoder.ts"() {
|
|
1308
|
+
"use strict";
|
|
1309
|
+
ShaderTypeDecoder = class {
|
|
1310
|
+
getVariableShaderTypeInfo(format) {
|
|
1311
|
+
return getVariableShaderTypeInfo(format);
|
|
1312
|
+
}
|
|
1313
|
+
getAttributeShaderTypeInfo(attributeType) {
|
|
1314
|
+
return getAttributeShaderTypeInfo(attributeType);
|
|
1315
|
+
}
|
|
1316
|
+
makeShaderAttributeType(primitiveType, components) {
|
|
1317
|
+
return makeShaderAttributeType(primitiveType, components);
|
|
1318
|
+
}
|
|
1319
|
+
resolveAttributeShaderTypeAlias(alias) {
|
|
1320
|
+
return resolveAttributeShaderTypeAlias(alias);
|
|
1321
|
+
}
|
|
1322
|
+
resolveVariableShaderTypeAlias(alias) {
|
|
1323
|
+
return resolveVariableShaderTypeAlias(alias);
|
|
1324
|
+
}
|
|
1325
|
+
};
|
|
1326
|
+
shaderTypeDecoder = new ShaderTypeDecoder();
|
|
1327
|
+
PRIMITIVE_TYPE_SIZES = {
|
|
1328
|
+
f32: 4,
|
|
1329
|
+
f16: 2,
|
|
1330
|
+
i32: 4,
|
|
1331
|
+
u32: 4
|
|
1332
|
+
// 'bool-webgl': 4,
|
|
1333
|
+
};
|
|
1334
|
+
TYPE_INFO = {
|
|
1335
|
+
f32: ["f32", 1],
|
|
1336
|
+
"vec2<f32>": ["f32", 2],
|
|
1337
|
+
"vec3<f32>": ["f32", 3],
|
|
1338
|
+
"vec4<f32>": ["f32", 4],
|
|
1339
|
+
f16: ["f16", 1],
|
|
1340
|
+
"vec2<f16>": ["f16", 2],
|
|
1341
|
+
"vec3<f16>": ["f16", 3],
|
|
1342
|
+
"vec4<f16>": ["f16", 4],
|
|
1343
|
+
i32: ["i32", 1],
|
|
1344
|
+
"vec2<i32>": ["i32", 2],
|
|
1345
|
+
"vec3<i32>": ["i32", 3],
|
|
1346
|
+
"vec4<i32>": ["i32", 4],
|
|
1347
|
+
u32: ["u32", 1],
|
|
1348
|
+
"vec2<u32>": ["u32", 2],
|
|
1349
|
+
"vec3<u32>": ["u32", 3],
|
|
1350
|
+
"vec4<u32>": ["u32", 4]
|
|
1351
|
+
};
|
|
1352
|
+
UNIFORM_FORMATS = {
|
|
1353
|
+
f32: { type: "f32", components: 1 },
|
|
1354
|
+
f16: { type: "f16", components: 1 },
|
|
1355
|
+
i32: { type: "i32", components: 1 },
|
|
1356
|
+
u32: { type: "u32", components: 1 },
|
|
1357
|
+
// 'bool-webgl': {type: 'bool-webgl', components: 1},
|
|
1358
|
+
"vec2<f32>": { type: "f32", components: 2 },
|
|
1359
|
+
"vec3<f32>": { type: "f32", components: 3 },
|
|
1360
|
+
"vec4<f32>": { type: "f32", components: 4 },
|
|
1361
|
+
"vec2<f16>": { type: "f16", components: 2 },
|
|
1362
|
+
"vec3<f16>": { type: "f16", components: 3 },
|
|
1363
|
+
"vec4<f16>": { type: "f16", components: 4 },
|
|
1364
|
+
"vec2<i32>": { type: "i32", components: 2 },
|
|
1365
|
+
"vec3<i32>": { type: "i32", components: 3 },
|
|
1366
|
+
"vec4<i32>": { type: "i32", components: 4 },
|
|
1367
|
+
"vec2<u32>": { type: "u32", components: 2 },
|
|
1368
|
+
"vec3<u32>": { type: "u32", components: 3 },
|
|
1369
|
+
"vec4<u32>": { type: "u32", components: 4 },
|
|
1370
|
+
"mat2x2<f32>": { type: "f32", components: 4 },
|
|
1371
|
+
"mat2x3<f32>": { type: "f32", components: 6 },
|
|
1372
|
+
"mat2x4<f32>": { type: "f32", components: 8 },
|
|
1373
|
+
"mat3x2<f32>": { type: "f32", components: 6 },
|
|
1374
|
+
"mat3x3<f32>": { type: "f32", components: 9 },
|
|
1375
|
+
"mat3x4<f32>": { type: "f32", components: 12 },
|
|
1376
|
+
"mat4x2<f32>": { type: "f32", components: 8 },
|
|
1377
|
+
"mat4x3<f32>": { type: "f32", components: 12 },
|
|
1378
|
+
"mat4x4<f32>": { type: "f32", components: 16 },
|
|
1379
|
+
"mat2x2<f16>": { type: "f16", components: 4 },
|
|
1380
|
+
"mat2x3<f16>": { type: "f16", components: 6 },
|
|
1381
|
+
"mat2x4<f16>": { type: "f16", components: 8 },
|
|
1382
|
+
"mat3x2<f16>": { type: "f16", components: 6 },
|
|
1383
|
+
"mat3x3<f16>": { type: "f16", components: 9 },
|
|
1384
|
+
"mat3x4<f16>": { type: "f16", components: 12 },
|
|
1385
|
+
"mat4x2<f16>": { type: "f16", components: 8 },
|
|
1386
|
+
"mat4x3<f16>": { type: "f16", components: 12 },
|
|
1387
|
+
"mat4x4<f16>": { type: "f16", components: 16 },
|
|
1388
|
+
"mat2x2<i32>": { type: "i32", components: 4 },
|
|
1389
|
+
"mat2x3<i32>": { type: "i32", components: 6 },
|
|
1390
|
+
"mat2x4<i32>": { type: "i32", components: 8 },
|
|
1391
|
+
"mat3x2<i32>": { type: "i32", components: 6 },
|
|
1392
|
+
"mat3x3<i32>": { type: "i32", components: 9 },
|
|
1393
|
+
"mat3x4<i32>": { type: "i32", components: 12 },
|
|
1394
|
+
"mat4x2<i32>": { type: "i32", components: 8 },
|
|
1395
|
+
"mat4x3<i32>": { type: "i32", components: 12 },
|
|
1396
|
+
"mat4x4<i32>": { type: "i32", components: 16 },
|
|
1397
|
+
"mat2x2<u32>": { type: "u32", components: 4 },
|
|
1398
|
+
"mat2x3<u32>": { type: "u32", components: 6 },
|
|
1399
|
+
"mat2x4<u32>": { type: "u32", components: 8 },
|
|
1400
|
+
"mat3x2<u32>": { type: "u32", components: 6 },
|
|
1401
|
+
"mat3x3<u32>": { type: "u32", components: 9 },
|
|
1402
|
+
"mat3x4<u32>": { type: "u32", components: 12 },
|
|
1403
|
+
"mat4x2<u32>": { type: "u32", components: 8 },
|
|
1404
|
+
"mat4x3<u32>": { type: "u32", components: 12 },
|
|
1405
|
+
"mat4x4<u32>": { type: "u32", components: 16 }
|
|
1406
|
+
};
|
|
1407
|
+
WGSL_ATTRIBUTE_TYPE_ALIAS_MAP = {
|
|
1408
|
+
vec2i: "vec2<i32>",
|
|
1409
|
+
vec3i: "vec3<i32>",
|
|
1410
|
+
vec4i: "vec4<i32>",
|
|
1411
|
+
vec2u: "vec2<u32>",
|
|
1412
|
+
vec3u: "vec3<u32>",
|
|
1413
|
+
vec4u: "vec4<u32>",
|
|
1414
|
+
vec2f: "vec2<f32>",
|
|
1415
|
+
vec3f: "vec3<f32>",
|
|
1416
|
+
vec4f: "vec4<f32>",
|
|
1417
|
+
// Requires the f16 extension.
|
|
1418
|
+
vec2h: "vec2<f16>",
|
|
1419
|
+
vec3h: "vec3<f16>",
|
|
1420
|
+
vec4h: "vec4<f16>"
|
|
1421
|
+
};
|
|
1422
|
+
WGSL_VARIABLE_TYPE_ALIAS_MAP = {
|
|
1423
|
+
vec2i: "vec2<i32>",
|
|
1424
|
+
vec3i: "vec3<i32>",
|
|
1425
|
+
vec4i: "vec4<i32>",
|
|
1426
|
+
vec2u: "vec2<u32>",
|
|
1427
|
+
vec3u: "vec3<u32>",
|
|
1428
|
+
vec4u: "vec4<u32>",
|
|
1429
|
+
vec2f: "vec2<f32>",
|
|
1430
|
+
vec3f: "vec3<f32>",
|
|
1431
|
+
vec4f: "vec4<f32>",
|
|
1432
|
+
vec2h: "vec2<f16>",
|
|
1433
|
+
vec3h: "vec3<f16>",
|
|
1434
|
+
vec4h: "vec4<f16>",
|
|
1435
|
+
mat2x2f: "mat2x2<f32>",
|
|
1436
|
+
mat2x3f: "mat2x3<f32>",
|
|
1437
|
+
mat2x4f: "mat2x4<f32>",
|
|
1438
|
+
mat3x2f: "mat3x2<f32>",
|
|
1439
|
+
mat3x3f: "mat3x3<f32>",
|
|
1440
|
+
mat3x4f: "mat3x4<f32>",
|
|
1441
|
+
mat4x2f: "mat4x2<f32>",
|
|
1442
|
+
mat4x3f: "mat4x3<f32>",
|
|
1443
|
+
mat4x4f: "mat4x4<f32>",
|
|
1444
|
+
mat2x2i: "mat2x2<i32>",
|
|
1445
|
+
mat2x3i: "mat2x3<i32>",
|
|
1446
|
+
mat2x4i: "mat2x4<i32>",
|
|
1447
|
+
mat3x2i: "mat3x2<i32>",
|
|
1448
|
+
mat3x3i: "mat3x3<i32>",
|
|
1449
|
+
mat3x4i: "mat3x4<i32>",
|
|
1450
|
+
mat4x2i: "mat4x2<i32>",
|
|
1451
|
+
mat4x3i: "mat4x3<i32>",
|
|
1452
|
+
mat4x4i: "mat4x4<i32>",
|
|
1453
|
+
mat2x2u: "mat2x2<u32>",
|
|
1454
|
+
mat2x3u: "mat2x3<u32>",
|
|
1455
|
+
mat2x4u: "mat2x4<u32>",
|
|
1456
|
+
mat3x2u: "mat3x2<u32>",
|
|
1457
|
+
mat3x3u: "mat3x3<u32>",
|
|
1458
|
+
mat3x4u: "mat3x4<u32>",
|
|
1459
|
+
mat4x2u: "mat4x2<u32>",
|
|
1460
|
+
mat4x3u: "mat4x3<u32>",
|
|
1461
|
+
mat4x4u: "mat4x4<u32>",
|
|
1462
|
+
mat2x2h: "mat2x2<f16>",
|
|
1463
|
+
mat2x3h: "mat2x3<f16>",
|
|
1464
|
+
mat2x4h: "mat2x4<f16>",
|
|
1465
|
+
mat3x2h: "mat3x2<f16>",
|
|
1466
|
+
mat3x3h: "mat3x3<f16>",
|
|
1467
|
+
mat3x4h: "mat3x4<f16>",
|
|
1468
|
+
mat4x2h: "mat4x2<f16>",
|
|
1469
|
+
mat4x3h: "mat4x3<f16>",
|
|
1470
|
+
mat4x4h: "mat4x4<f16>"
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
});
|
|
1474
|
+
|
|
1475
|
+
// ../shaders/src/types/align-to.ts
|
|
1476
|
+
function alignTo(size, count) {
|
|
1477
|
+
switch (count) {
|
|
1478
|
+
case 1:
|
|
1479
|
+
return size;
|
|
1480
|
+
// Pad upwards to even multiple of 2
|
|
1481
|
+
case 2:
|
|
1482
|
+
return size + size % 2;
|
|
1483
|
+
// Pad upwards to even multiple of 2
|
|
1484
|
+
default:
|
|
1485
|
+
return size + (4 - size % 4) % 4;
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
var init_align_to = __esm({
|
|
1489
|
+
"../shaders/src/types/align-to.ts"() {
|
|
1490
|
+
"use strict";
|
|
1491
|
+
}
|
|
1492
|
+
});
|
|
1493
|
+
|
|
1494
|
+
// ../shaders/src/types/shader-block-layout.ts
|
|
1495
|
+
var init_shader_block_layout = __esm({
|
|
1496
|
+
"../shaders/src/types/shader-block-layout.ts"() {
|
|
1497
|
+
"use strict";
|
|
1498
|
+
}
|
|
1499
|
+
});
|
|
1500
|
+
|
|
1501
|
+
// ../shaders/src/types/shader-layout.ts
|
|
1502
|
+
var init_shader_layout = __esm({
|
|
1503
|
+
"../shaders/src/types/shader-layout.ts"() {
|
|
1504
|
+
"use strict";
|
|
1505
|
+
}
|
|
1506
|
+
});
|
|
1507
|
+
|
|
1508
|
+
// ../shaders/src/types/texture-formats.ts
|
|
1509
|
+
var init_texture_formats = __esm({
|
|
1510
|
+
"../shaders/src/types/texture-formats.ts"() {
|
|
1511
|
+
"use strict";
|
|
1512
|
+
}
|
|
1513
|
+
});
|
|
1514
|
+
|
|
1515
|
+
// ../shaders/src/types/sampler-props.ts
|
|
1516
|
+
var init_sampler_props = __esm({
|
|
1517
|
+
"../shaders/src/types/sampler-props.ts"() {
|
|
1518
|
+
"use strict";
|
|
1519
|
+
}
|
|
1520
|
+
});
|
|
1521
|
+
|
|
1522
|
+
// ../shaders/src/types.ts
|
|
1523
|
+
var init_types2 = __esm({
|
|
1524
|
+
"../shaders/src/types.ts"() {
|
|
1525
|
+
"use strict";
|
|
1526
|
+
init_primitive_data_types();
|
|
1527
|
+
init_shader_types();
|
|
1528
|
+
init_shader_type_decoder();
|
|
1529
|
+
init_shader_block_layout();
|
|
1530
|
+
init_shader_layout();
|
|
1531
|
+
init_texture_formats();
|
|
1532
|
+
init_sampler_props();
|
|
1533
|
+
init_align_to();
|
|
1534
|
+
}
|
|
1535
|
+
});
|
|
1536
|
+
|
|
1255
1537
|
// ../core/src/shadertypes/data-types/decode-data-types.ts
|
|
1256
1538
|
function getDataTypeInfo(type) {
|
|
1257
1539
|
const normalized = type.includes("norm");
|
|
@@ -1283,18 +1565,6 @@ var __exports__ = (() => {
|
|
|
1283
1565
|
return dataType;
|
|
1284
1566
|
}
|
|
1285
1567
|
}
|
|
1286
|
-
function alignTo(size, count) {
|
|
1287
|
-
switch (count) {
|
|
1288
|
-
case 1:
|
|
1289
|
-
return size;
|
|
1290
|
-
// Pad upwards to even multiple of 2
|
|
1291
|
-
case 2:
|
|
1292
|
-
return size + size % 2;
|
|
1293
|
-
// Pad upwards to even multiple of 2
|
|
1294
|
-
default:
|
|
1295
|
-
return size + (4 - size % 4) % 4;
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
1568
|
function getDataTypeFromTypedArray(arrayOrType) {
|
|
1299
1569
|
const Constructor = ArrayBuffer.isView(arrayOrType) ? arrayOrType.constructor : arrayOrType;
|
|
1300
1570
|
if (isFloat16ArrayConstructor(Constructor)) {
|
|
@@ -1331,6 +1601,7 @@ var __exports__ = (() => {
|
|
|
1331
1601
|
"../core/src/shadertypes/data-types/decode-data-types.ts"() {
|
|
1332
1602
|
"use strict";
|
|
1333
1603
|
init_types();
|
|
1604
|
+
init_types2();
|
|
1334
1605
|
NORMALIZED_TYPE_MAP = {
|
|
1335
1606
|
uint8: ["uint8", "u32", 1, false, Uint8Array],
|
|
1336
1607
|
sint8: ["sint8", "i32", 1, false, Int8Array],
|