@adobe/data-gpu 0.10.22 → 0.10.24

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 (44) hide show
  1. package/dist/core/core-plugin.d.ts +1 -1
  2. package/dist/graphics/animation/animation-plugin.d.ts +2 -2
  3. package/dist/graphics/camera/camera-plugin.d.ts +1 -1
  4. package/dist/graphics/camera/orbit/orbit-data-plugin.d.ts +1 -1
  5. package/dist/graphics/camera/orbit/orbit-plugin.d.ts +1 -1
  6. package/dist/graphics/camera/orbit/orbit-system-plugin.d.ts +1 -1
  7. package/dist/graphics/graphics-plugin.d.ts +1 -1
  8. package/dist/graphics/picking/picking-plugin.d.ts +770 -770
  9. package/dist/graphics/rendering/bone-collider-plugin.d.ts +200 -200
  10. package/dist/graphics/rendering/ibl-render/ibl-render-plugin.d.ts +146 -146
  11. package/dist/graphics/rendering/interpolation-plugin.d.ts +7 -7
  12. package/dist/graphics/rendering/jolt-ragdoll-plugin.d.ts +200 -200
  13. package/dist/graphics/rendering/material-palette-gpu/material-palette-gpu-plugin.d.ts +7 -7
  14. package/dist/graphics/rendering/model-collider-plugin.d.ts +150 -150
  15. package/dist/graphics/rendering/pbr-render/pbr-factor-render-plugin.d.ts +146 -146
  16. package/dist/graphics/rendering/skinning/skinning-plugin.d.ts +168 -168
  17. package/dist/graphics/scene/model/model-loader-plugin.d.ts +150 -150
  18. package/dist/graphics/scene/model/shape/shape-geometry-plugin.d.ts +74 -74
  19. package/dist/graphics/scene/model/world-bounds-plugin.d.ts +150 -150
  20. package/dist/graphics/scene/scene-plugin.d.ts +16 -16
  21. package/dist/graphics/scene/scene-uniforms/scene-uniforms-plugin.d.ts +13 -13
  22. package/dist/physics/physics-clock-plugin.d.ts +1 -1
  23. package/dist/physics/solvers/jolt-solver-plugin.d.ts +1 -1
  24. package/dist/physics/solvers/rapier-solver-plugin.d.ts +1 -1
  25. package/package.json +2 -2
  26. package/tsconfig.tsbuildinfo +1 -1
  27. package/dist/graphics/rendering/material-gpu/material-arrays.d.ts +0 -47
  28. package/dist/graphics/rendering/material-gpu/material-arrays.js +0 -83
  29. package/dist/graphics/rendering/material-gpu/material-arrays.js.map +0 -1
  30. package/dist/graphics/rendering/material-gpu/material-bind-group.d.ts +0 -9
  31. package/dist/graphics/rendering/material-gpu/material-bind-group.js +0 -52
  32. package/dist/graphics/rendering/material-gpu/material-bind-group.js.map +0 -1
  33. package/dist/graphics/rendering/material-gpu/material-gpu-plugin.d.ts +0 -259
  34. package/dist/graphics/rendering/material-gpu/material-gpu-plugin.js +0 -90
  35. package/dist/graphics/rendering/material-gpu/material-gpu-plugin.js.map +0 -1
  36. package/dist/graphics/rendering/pbr-render/pbr-array-shader.wgsl.d.ts +0 -10
  37. package/dist/graphics/rendering/pbr-render/pbr-array-shader.wgsl.js +0 -145
  38. package/dist/graphics/rendering/pbr-render/pbr-array-shader.wgsl.js.map +0 -1
  39. package/dist/graphics/rendering/pbr-render/pbr-render-plugin.d.ts +0 -1266
  40. package/dist/graphics/rendering/pbr-render/pbr-render-plugin.js +0 -254
  41. package/dist/graphics/rendering/pbr-render/pbr-render-plugin.js.map +0 -1
  42. package/dist/graphics/scene/model/geometry/geometry.d.ts +0 -9
  43. package/dist/graphics/scene/model/geometry/geometry.js +0 -3
  44. package/dist/graphics/scene/model/geometry/geometry.js.map +0 -1
@@ -11,7 +11,7 @@ import { type Entity } from "@adobe/data/ecs";
11
11
  * TRS gather + instance buffer uploads and only re-issue drawIndexed.
12
12
  */
13
13
  export declare const pbrFactorRender: {
14
- readonly components: {
14
+ readonly components: {} & {
15
15
  readonly visible: {
16
16
  readonly type: "boolean";
17
17
  readonly const: true;
@@ -103,7 +103,7 @@ export declare const pbrFactorRender: {
103
103
  readonly required: readonly ["min", "max"];
104
104
  readonly additionalProperties: false;
105
105
  };
106
- } & {} & {
106
+ } & {
107
107
  readonly _vertexBuffer: {
108
108
  readonly default: GPUBuffer | null;
109
109
  readonly nonPersistent: true;
@@ -466,10 +466,8 @@ export declare const pbrFactorRender: {
466
466
  };
467
467
  };
468
468
  readonly resources: {} & {
469
- readonly _gltfMeshByUrl: {
470
- readonly default: Map<string, Entity> | null;
471
- readonly nonPersistent: true;
472
- readonly mutable: true;
469
+ readonly light: {
470
+ readonly default: import("../../scene/light/public.js");
473
471
  };
474
472
  } & {
475
473
  readonly frameTime: {
@@ -522,15 +520,17 @@ export declare const pbrFactorRender: {
522
520
  readonly camera: {
523
521
  readonly default: import("../../camera/public.js");
524
522
  };
525
- } & {
526
- readonly light: {
527
- readonly default: import("../../scene/light/public.js");
528
- };
529
523
  } & {
530
524
  readonly _sceneUniformsBuffer: {
531
525
  readonly default: GPUBuffer | null;
532
526
  readonly nonPersistent: true;
533
527
  };
528
+ } & {
529
+ readonly _gltfMeshByUrl: {
530
+ readonly default: Map<string, Entity> | null;
531
+ readonly nonPersistent: true;
532
+ readonly mutable: true;
533
+ };
534
534
  } & {
535
535
  readonly _iblEnvironment: {
536
536
  readonly default: GPUTexture | null;
@@ -563,9 +563,9 @@ export declare const pbrFactorRender: {
563
563
  readonly nonPersistent: true;
564
564
  };
565
565
  };
566
- readonly archetypes: {
566
+ readonly archetypes: {} & {
567
567
  readonly Node: readonly ["position", "rotation", "scale", "parent", "visible"];
568
- } & {} & {} & {
568
+ } & {} & {
569
569
  readonly _VisibleMaterial: readonly ["nonPersistent", "_materialBindGroup", "_mesh"];
570
570
  readonly _PbrPrimitive: readonly ["nonPersistent", "_vertexBuffer", "_skinVertexBuffer", "_indexBuffer", "_indexCount", "_indexFormat", "_material", "_mesh", "_nodeLocalMatrix"];
571
571
  } & {
@@ -582,7 +582,62 @@ export declare const pbrFactorRender: {
582
582
  readonly Animation: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying"];
583
583
  readonly AnimationObservable: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying", "animationObservable"];
584
584
  } & {} & {} & {} & {} & {} & {};
585
- readonly transactions: {} & {} & {} & {
585
+ readonly transactions: {} & {} & {
586
+ readonly setLight: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{}>, import("@adobe/data/schema").FromSchemas<{
587
+ readonly light: {
588
+ readonly default: import("../../scene/light/public.js");
589
+ };
590
+ }>, {}, {}, never, never>, args: Partial<import("../../scene/light/public.js")>) => void;
591
+ } & {} & {} & {
592
+ readonly setCanvas: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{}>, import("@adobe/data/schema").FromSchemas<{
593
+ readonly renderPassEncoder: {
594
+ readonly default: GPURenderPassEncoder | null;
595
+ readonly nonPersistent: true;
596
+ };
597
+ readonly depthTexture: {
598
+ readonly default: GPUTexture | null;
599
+ readonly nonPersistent: true;
600
+ };
601
+ readonly clearColor: {
602
+ readonly default: import("@adobe/data/math").Vec4;
603
+ readonly nonPersistent: true;
604
+ };
605
+ readonly canvas: {
606
+ readonly default: HTMLCanvasElement | null;
607
+ readonly nonPersistent: true;
608
+ };
609
+ readonly canvasContext: {
610
+ readonly default: GPUCanvasContext | null;
611
+ readonly nonPersistent: true;
612
+ };
613
+ readonly canvasFormat: {
614
+ readonly default: GPUTextureFormat;
615
+ readonly nonPersistent: true;
616
+ };
617
+ readonly depthFormat: {
618
+ readonly default: GPUTextureFormat;
619
+ readonly nonPersistent: true;
620
+ };
621
+ } & {
622
+ readonly frameTime: {
623
+ readonly default: import("../../../core/frame-time/public.js");
624
+ readonly nonPersistent: true;
625
+ };
626
+ } & {
627
+ readonly schedulerState: {
628
+ readonly default: import("@adobe/data/ecs").SchedulerState;
629
+ };
630
+ } & {
631
+ readonly device: {
632
+ readonly default: GPUDevice | null;
633
+ readonly nonPersistent: true;
634
+ };
635
+ readonly commandEncoder: {
636
+ readonly default: GPUCommandEncoder | null;
637
+ readonly nonPersistent: true;
638
+ };
639
+ }>, {}, {}, never, never>, canvas: HTMLCanvasElement | null) => void;
640
+ } & {} & {} & {} & {
586
641
  readonly insertMaterial: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{
587
642
  readonly material: {
588
643
  readonly entity: true;
@@ -2842,7 +2897,7 @@ export declare const pbrFactorRender: {
2842
2897
  scale?: import("@adobe/data/math").Vec3;
2843
2898
  parent?: Entity;
2844
2899
  }) => Entity;
2845
- } & {} & {} & {} & {
2900
+ } & {} & {
2846
2901
  readonly insertAnimationClip: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{} & {
2847
2902
  readonly animationClipTracks: {
2848
2903
  readonly default: import("../../animation/animation-track/public.js")[];
@@ -3000,74 +3055,6 @@ export declare const pbrFactorRender: {
3000
3055
  }) => void;
3001
3056
  } & {} & {
3002
3057
  readonly insertLoadedPrimitives: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{} & {
3003
- readonly _vertexBuffer: {
3004
- readonly default: GPUBuffer | null;
3005
- readonly nonPersistent: true;
3006
- };
3007
- readonly _skinVertexBuffer: {
3008
- readonly default: GPUBuffer | null;
3009
- readonly nonPersistent: true;
3010
- };
3011
- readonly _indexBuffer: {
3012
- readonly default: GPUBuffer | null;
3013
- readonly nonPersistent: true;
3014
- };
3015
- readonly _indexCount: {
3016
- readonly default: undefined;
3017
- readonly nonPersistent: true;
3018
- readonly type: "integer";
3019
- readonly minimum: 0;
3020
- readonly maximum: 4294967295;
3021
- };
3022
- readonly _indexFormat: {
3023
- readonly default: GPUIndexFormat;
3024
- readonly nonPersistent: true;
3025
- };
3026
- readonly _materialBindGroup: {
3027
- readonly default: GPUBindGroup | null;
3028
- readonly nonPersistent: true;
3029
- };
3030
- readonly _mesh: {
3031
- readonly default: undefined;
3032
- readonly nonPersistent: true;
3033
- readonly entity: true;
3034
- readonly type: "integer";
3035
- readonly minimum: -2147483648;
3036
- readonly maximum: 2147483647;
3037
- };
3038
- readonly _material: {
3039
- readonly default: undefined;
3040
- readonly nonPersistent: true;
3041
- readonly entity: true;
3042
- readonly type: "integer";
3043
- readonly minimum: -2147483648;
3044
- readonly maximum: 2147483647;
3045
- };
3046
- readonly _nodeLocalMatrix: {
3047
- readonly default: undefined;
3048
- readonly nonPersistent: true;
3049
- readonly type: "array";
3050
- readonly items: {
3051
- readonly type: "number";
3052
- readonly precision: 1;
3053
- readonly default: number;
3054
- };
3055
- readonly minItems: 16;
3056
- readonly maxItems: 16;
3057
- };
3058
- readonly _skeletonModelRef: {
3059
- readonly default: undefined;
3060
- readonly nonPersistent: true;
3061
- readonly entity: true;
3062
- readonly type: "integer";
3063
- readonly minimum: -2147483648;
3064
- readonly maximum: 2147483647;
3065
- };
3066
- readonly _skeletonJointMatrixBindGroup: {
3067
- readonly default: GPUBindGroup | null;
3068
- readonly nonPersistent: true;
3069
- };
3070
- } & {
3071
3058
  readonly visible: {
3072
3059
  readonly type: "boolean";
3073
3060
  readonly const: true;
@@ -3416,6 +3403,74 @@ export declare const pbrFactorRender: {
3416
3403
  readonly const: true;
3417
3404
  readonly default: true;
3418
3405
  };
3406
+ } & {
3407
+ readonly _vertexBuffer: {
3408
+ readonly default: GPUBuffer | null;
3409
+ readonly nonPersistent: true;
3410
+ };
3411
+ readonly _skinVertexBuffer: {
3412
+ readonly default: GPUBuffer | null;
3413
+ readonly nonPersistent: true;
3414
+ };
3415
+ readonly _indexBuffer: {
3416
+ readonly default: GPUBuffer | null;
3417
+ readonly nonPersistent: true;
3418
+ };
3419
+ readonly _indexCount: {
3420
+ readonly default: undefined;
3421
+ readonly nonPersistent: true;
3422
+ readonly type: "integer";
3423
+ readonly minimum: 0;
3424
+ readonly maximum: 4294967295;
3425
+ };
3426
+ readonly _indexFormat: {
3427
+ readonly default: GPUIndexFormat;
3428
+ readonly nonPersistent: true;
3429
+ };
3430
+ readonly _materialBindGroup: {
3431
+ readonly default: GPUBindGroup | null;
3432
+ readonly nonPersistent: true;
3433
+ };
3434
+ readonly _mesh: {
3435
+ readonly default: undefined;
3436
+ readonly nonPersistent: true;
3437
+ readonly entity: true;
3438
+ readonly type: "integer";
3439
+ readonly minimum: -2147483648;
3440
+ readonly maximum: 2147483647;
3441
+ };
3442
+ readonly _material: {
3443
+ readonly default: undefined;
3444
+ readonly nonPersistent: true;
3445
+ readonly entity: true;
3446
+ readonly type: "integer";
3447
+ readonly minimum: -2147483648;
3448
+ readonly maximum: 2147483647;
3449
+ };
3450
+ readonly _nodeLocalMatrix: {
3451
+ readonly default: undefined;
3452
+ readonly nonPersistent: true;
3453
+ readonly type: "array";
3454
+ readonly items: {
3455
+ readonly type: "number";
3456
+ readonly precision: 1;
3457
+ readonly default: number;
3458
+ };
3459
+ readonly minItems: 16;
3460
+ readonly maxItems: 16;
3461
+ };
3462
+ readonly _skeletonModelRef: {
3463
+ readonly default: undefined;
3464
+ readonly nonPersistent: true;
3465
+ readonly entity: true;
3466
+ readonly type: "integer";
3467
+ readonly minimum: -2147483648;
3468
+ readonly maximum: 2147483647;
3469
+ };
3470
+ readonly _skeletonJointMatrixBindGroup: {
3471
+ readonly default: GPUBindGroup | null;
3472
+ readonly nonPersistent: true;
3473
+ };
3419
3474
  }>, import("@adobe/data/schema").FromSchemas<{} & {
3420
3475
  readonly _gltfMeshByUrl: {
3421
3476
  readonly default: Map<string, Entity> | null;
@@ -3441,9 +3496,6 @@ export declare const pbrFactorRender: {
3441
3496
  readonly nonPersistent: true;
3442
3497
  };
3443
3498
  }>, {} & {} & {
3444
- readonly _VisibleMaterial: readonly ["nonPersistent", "_materialBindGroup", "_mesh"];
3445
- readonly _PbrPrimitive: readonly ["nonPersistent", "_vertexBuffer", "_skinVertexBuffer", "_indexBuffer", "_indexCount", "_indexFormat", "_material", "_mesh", "_nodeLocalMatrix"];
3446
- } & {
3447
3499
  readonly Node: readonly ["position", "rotation", "scale", "parent", "visible"];
3448
3500
  } & {} & {
3449
3501
  readonly Material: readonly ["name", "density", "restitution", "friction", "compliance", "heatCapacity", "viscosity", "thermalConductivity", "stressStrainCurve", "baseColorFactor", "emissiveFactor", "metallicFactor", "roughnessFactor", "normalScale", "occlusionStrength", "irReflectance", "irEmission", "emissionMode", "baseColorUrl", "metallicRoughnessUrl", "normalUrl", "occlusionUrl", "emissiveUrl"];
@@ -3458,7 +3510,10 @@ export declare const pbrFactorRender: {
3458
3510
  readonly AnimationClip: readonly ["animationClipTracks", "animationClipDuration"];
3459
3511
  readonly Animation: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying"];
3460
3512
  readonly AnimationObservable: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying", "animationObservable"];
3461
- } & {}, {} & {} & {} & {
3513
+ } & {} & {
3514
+ readonly _VisibleMaterial: readonly ["nonPersistent", "_materialBindGroup", "_mesh"];
3515
+ readonly _PbrPrimitive: readonly ["nonPersistent", "_vertexBuffer", "_skinVertexBuffer", "_indexBuffer", "_indexCount", "_indexFormat", "_material", "_mesh", "_nodeLocalMatrix"];
3516
+ }, {} & {} & {
3462
3517
  readonly nodeChildrenOf: {
3463
3518
  readonly key: "parent";
3464
3519
  readonly archetype: "Node";
@@ -3469,73 +3524,18 @@ export declare const pbrFactorRender: {
3469
3524
  readonly unique: true;
3470
3525
  readonly archetype: "Material";
3471
3526
  };
3472
- } & {} & {} & {} & {}, never, never>, args: import("../../public.js").LoadedArgs) => void;
3473
- } & {
3474
- readonly setCanvas: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{}>, import("@adobe/data/schema").FromSchemas<{
3475
- readonly renderPassEncoder: {
3476
- readonly default: GPURenderPassEncoder | null;
3477
- readonly nonPersistent: true;
3478
- };
3479
- readonly depthTexture: {
3480
- readonly default: GPUTexture | null;
3481
- readonly nonPersistent: true;
3482
- };
3483
- readonly clearColor: {
3484
- readonly default: import("@adobe/data/math").Vec4;
3485
- readonly nonPersistent: true;
3486
- };
3487
- readonly canvas: {
3488
- readonly default: HTMLCanvasElement | null;
3489
- readonly nonPersistent: true;
3490
- };
3491
- readonly canvasContext: {
3492
- readonly default: GPUCanvasContext | null;
3493
- readonly nonPersistent: true;
3494
- };
3495
- readonly canvasFormat: {
3496
- readonly default: GPUTextureFormat;
3497
- readonly nonPersistent: true;
3498
- };
3499
- readonly depthFormat: {
3500
- readonly default: GPUTextureFormat;
3501
- readonly nonPersistent: true;
3502
- };
3503
- } & {
3504
- readonly frameTime: {
3505
- readonly default: import("../../../core/frame-time/public.js");
3506
- readonly nonPersistent: true;
3507
- };
3508
- } & {
3509
- readonly schedulerState: {
3510
- readonly default: import("@adobe/data/ecs").SchedulerState;
3511
- };
3512
- } & {
3513
- readonly device: {
3514
- readonly default: GPUDevice | null;
3515
- readonly nonPersistent: true;
3516
- };
3517
- readonly commandEncoder: {
3518
- readonly default: GPUCommandEncoder | null;
3519
- readonly nonPersistent: true;
3520
- };
3521
- }>, {}, {}, never, never>, canvas: HTMLCanvasElement | null) => void;
3522
- } & {} & {
3523
- readonly setLight: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{}>, import("@adobe/data/schema").FromSchemas<{
3524
- readonly light: {
3525
- readonly default: import("../../scene/light/public.js");
3526
- };
3527
- }>, {}, {}, never, never>, args: Partial<import("../../scene/light/public.js")>) => void;
3528
- } & {} & {} & {} & {} & {};
3529
- readonly systems: import("@adobe/data/ecs").SystemDeclarations<"transformCreateWorldMatrix" | "transformSystem" | "update" | "_frameTime" | "schedulerSystem" | "input" | "preUpdate" | "postUpdate" | "physics" | "preRender" | "render" | "postRender" | "animationSampleSystem" | "modelLoadSystem" | "configureCanvas" | "beginRenderPass" | "endRenderPass" | "updateCameraAspect" | "sceneUniformsSystem" | "iblInitSystem" | "pbrIblRenderSystem" | "materialPaletteGpuBuilder" | "pbrFactorPrimitiveRenderSystem">;
3527
+ } & {} & {} & {} & {} & {}, never, never>, args: import("../../public.js").LoadedArgs) => void;
3528
+ } & {} & {} & {} & {};
3529
+ readonly systems: import("@adobe/data/ecs").SystemDeclarations<"_frameTime" | "update" | "schedulerSystem" | "input" | "preUpdate" | "postUpdate" | "physics" | "preRender" | "render" | "postRender" | "configureCanvas" | "beginRenderPass" | "endRenderPass" | "transformCreateWorldMatrix" | "transformSystem" | "updateCameraAspect" | "sceneUniformsSystem" | "animationSampleSystem" | "modelLoadSystem" | "iblInitSystem" | "pbrIblRenderSystem" | "materialPaletteGpuBuilder" | "pbrFactorPrimitiveRenderSystem">;
3530
3530
  readonly actions: {};
3531
3531
  readonly services: {};
3532
3532
  readonly computed: {};
3533
- readonly indexes: {
3533
+ readonly indexes: {} & {
3534
3534
  readonly nodeChildrenOf: {
3535
3535
  readonly key: "parent";
3536
3536
  readonly archetype: "Node";
3537
3537
  };
3538
- } & {} & {} & {} & {
3538
+ } & {} & {} & {
3539
3539
  readonly materialByName: {
3540
3540
  readonly key: "name";
3541
3541
  readonly unique: true;