@adobe/data-gpu 0.9.95 → 0.9.97

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.
@@ -455,6 +455,10 @@ export declare const pbrFactorRender: {
455
455
  };
456
456
  };
457
457
  readonly resources: {} & {
458
+ readonly light: {
459
+ readonly default: import("../../scene/light/public.js");
460
+ };
461
+ } & {
458
462
  readonly frameTime: {
459
463
  readonly default: import("../../../core/frame-time/public.js");
460
464
  readonly nonPersistent: true;
@@ -472,24 +476,6 @@ export declare const pbrFactorRender: {
472
476
  readonly default: GPUCommandEncoder | null;
473
477
  readonly nonPersistent: true;
474
478
  };
475
- } & {
476
- readonly _factorPalette: {
477
- readonly default: GPUBuffer | null;
478
- readonly nonPersistent: true;
479
- };
480
- readonly _factorPaletteBindGroup: {
481
- readonly default: GPUBindGroup | null;
482
- readonly nonPersistent: true;
483
- };
484
- } & {
485
- readonly _gltfMeshByUrl: {
486
- readonly default: Map<string, Entity> | null;
487
- readonly nonPersistent: true;
488
- };
489
- } & {
490
- readonly light: {
491
- readonly default: import("../../scene/light/public.js");
492
- };
493
479
  } & {
494
480
  readonly renderPassEncoder: {
495
481
  readonly default: GPURenderPassEncoder | null;
@@ -528,6 +514,12 @@ export declare const pbrFactorRender: {
528
514
  readonly default: GPUBuffer | null;
529
515
  readonly nonPersistent: true;
530
516
  };
517
+ } & {
518
+ readonly _gltfMeshByUrl: {
519
+ readonly default: Map<string, Entity> | null;
520
+ readonly nonPersistent: true;
521
+ readonly mutable: true;
522
+ };
531
523
  } & {
532
524
  readonly _iblEnvironment: {
533
525
  readonly default: GPUTexture | null;
@@ -545,6 +537,15 @@ export declare const pbrFactorRender: {
545
537
  readonly default: GPUTexture | null;
546
538
  readonly nonPersistent: true;
547
539
  };
540
+ } & {
541
+ readonly _factorPalette: {
542
+ readonly default: GPUBuffer | null;
543
+ readonly nonPersistent: true;
544
+ };
545
+ readonly _factorPaletteBindGroup: {
546
+ readonly default: GPUBindGroup | null;
547
+ readonly nonPersistent: true;
548
+ };
548
549
  };
549
550
  readonly archetypes: {
550
551
  readonly Node: readonly ["position", "rotation", "scale", "parent", "visible"];
@@ -565,7 +566,62 @@ export declare const pbrFactorRender: {
565
566
  readonly Animation: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying"];
566
567
  readonly AnimationObservable: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying", "animationObservable"];
567
568
  } & {} & {} & {} & {} & {} & {};
568
- readonly transactions: {
569
+ readonly transactions: {} & {} & {
570
+ readonly setLight: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{}>, import("@adobe/data/schema").FromSchemas<{
571
+ readonly light: {
572
+ readonly default: import("../../scene/light/public.js");
573
+ };
574
+ }>, {}, {}, never>, args: Partial<import("../../scene/light/public.js")>) => void;
575
+ } & {} & {} & {
576
+ readonly setCanvas: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{}>, import("@adobe/data/schema").FromSchemas<{
577
+ readonly renderPassEncoder: {
578
+ readonly default: GPURenderPassEncoder | null;
579
+ readonly nonPersistent: true;
580
+ };
581
+ readonly depthTexture: {
582
+ readonly default: GPUTexture | null;
583
+ readonly nonPersistent: true;
584
+ };
585
+ readonly clearColor: {
586
+ readonly default: import("@adobe/data/math").Vec4;
587
+ readonly nonPersistent: true;
588
+ };
589
+ readonly canvas: {
590
+ readonly default: HTMLCanvasElement | null;
591
+ readonly nonPersistent: true;
592
+ };
593
+ readonly canvasContext: {
594
+ readonly default: GPUCanvasContext | null;
595
+ readonly nonPersistent: true;
596
+ };
597
+ readonly canvasFormat: {
598
+ readonly default: GPUTextureFormat;
599
+ readonly nonPersistent: true;
600
+ };
601
+ readonly depthFormat: {
602
+ readonly default: GPUTextureFormat;
603
+ readonly nonPersistent: true;
604
+ };
605
+ } & {
606
+ readonly frameTime: {
607
+ readonly default: import("../../../core/frame-time/public.js");
608
+ readonly nonPersistent: true;
609
+ };
610
+ } & {
611
+ readonly schedulerState: {
612
+ readonly default: import("@adobe/data/ecs").SchedulerState;
613
+ };
614
+ } & {
615
+ readonly device: {
616
+ readonly default: GPUDevice | null;
617
+ readonly nonPersistent: true;
618
+ };
619
+ readonly commandEncoder: {
620
+ readonly default: GPUCommandEncoder | null;
621
+ readonly nonPersistent: true;
622
+ };
623
+ }>, {}, {}, never>, canvas: HTMLCanvasElement | null) => void;
624
+ } & {} & {} & {} & {
569
625
  readonly insertMaterial: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{
570
626
  readonly material: {
571
627
  readonly type: "integer";
@@ -1459,7 +1515,7 @@ export declare const pbrFactorRender: {
1459
1515
  readonly archetype: "Material";
1460
1516
  };
1461
1517
  }, never>) => void;
1462
- } & {} & {} & {} & {} & {} & {} & {} & {
1518
+ } & {
1463
1519
  readonly insertGltfMesh: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{
1464
1520
  readonly mesh: {
1465
1521
  readonly type: "integer";
@@ -1768,6 +1824,7 @@ export declare const pbrFactorRender: {
1768
1824
  readonly _gltfMeshByUrl: {
1769
1825
  readonly default: Map<string, Entity> | null;
1770
1826
  readonly nonPersistent: true;
1827
+ readonly mutable: true;
1771
1828
  };
1772
1829
  } & {}>, {
1773
1830
  readonly GltfMeshPending: readonly ["gltfUrl"];
@@ -2102,6 +2159,7 @@ export declare const pbrFactorRender: {
2102
2159
  readonly _gltfMeshByUrl: {
2103
2160
  readonly default: Map<string, Entity> | null;
2104
2161
  readonly nonPersistent: true;
2162
+ readonly mutable: true;
2105
2163
  };
2106
2164
  } & {}>, {
2107
2165
  readonly GltfMeshPending: readonly ["gltfUrl"];
@@ -2436,6 +2494,7 @@ export declare const pbrFactorRender: {
2436
2494
  readonly _gltfMeshByUrl: {
2437
2495
  readonly default: Map<string, Entity> | null;
2438
2496
  readonly nonPersistent: true;
2497
+ readonly mutable: true;
2439
2498
  };
2440
2499
  } & {}>, {
2441
2500
  readonly GltfMeshPending: readonly ["gltfUrl"];
@@ -2774,6 +2833,7 @@ export declare const pbrFactorRender: {
2774
2833
  readonly _gltfMeshByUrl: {
2775
2834
  readonly default: Map<string, Entity> | null;
2776
2835
  readonly nonPersistent: true;
2836
+ readonly mutable: true;
2777
2837
  };
2778
2838
  } & {}>, {
2779
2839
  readonly GltfMeshPending: readonly ["gltfUrl"];
@@ -2959,71 +3019,6 @@ export declare const pbrFactorRender: {
2959
3019
  }) => void;
2960
3020
  } & {} & {
2961
3021
  readonly insertLoadedPrimitives: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{} & {
2962
- readonly _vertexBuffer: {
2963
- readonly default: GPUBuffer | null;
2964
- readonly nonPersistent: true;
2965
- };
2966
- readonly _skinVertexBuffer: {
2967
- readonly default: GPUBuffer | null;
2968
- readonly nonPersistent: true;
2969
- };
2970
- readonly _indexBuffer: {
2971
- readonly default: GPUBuffer | null;
2972
- readonly nonPersistent: true;
2973
- };
2974
- readonly _indexCount: {
2975
- readonly default: undefined;
2976
- readonly nonPersistent: true;
2977
- readonly type: "integer";
2978
- readonly minimum: 0;
2979
- readonly maximum: 4294967295;
2980
- };
2981
- readonly _indexFormat: {
2982
- readonly default: GPUIndexFormat;
2983
- readonly nonPersistent: true;
2984
- };
2985
- readonly _materialBindGroup: {
2986
- readonly default: GPUBindGroup | null;
2987
- readonly nonPersistent: true;
2988
- };
2989
- readonly _mesh: {
2990
- readonly default: undefined;
2991
- readonly nonPersistent: true;
2992
- readonly type: "integer";
2993
- readonly minimum: -2147483648;
2994
- readonly maximum: 2147483647;
2995
- };
2996
- readonly _material: {
2997
- readonly default: undefined;
2998
- readonly nonPersistent: true;
2999
- readonly type: "integer";
3000
- readonly minimum: -2147483648;
3001
- readonly maximum: 2147483647;
3002
- };
3003
- readonly _nodeLocalMatrix: {
3004
- readonly default: undefined;
3005
- readonly nonPersistent: true;
3006
- readonly type: "array";
3007
- readonly items: {
3008
- readonly type: "number";
3009
- readonly precision: 1;
3010
- readonly default: number;
3011
- };
3012
- readonly minItems: 16;
3013
- readonly maxItems: 16;
3014
- };
3015
- readonly _skeletonModelRef: {
3016
- readonly default: undefined;
3017
- readonly nonPersistent: true;
3018
- readonly type: "integer";
3019
- readonly minimum: -2147483648;
3020
- readonly maximum: 2147483647;
3021
- };
3022
- readonly _skeletonJointMatrixBindGroup: {
3023
- readonly default: GPUBindGroup | null;
3024
- readonly nonPersistent: true;
3025
- };
3026
- } & {
3027
3022
  readonly visible: {
3028
3023
  readonly type: "boolean";
3029
3024
  readonly const: true;
@@ -3368,10 +3363,76 @@ export declare const pbrFactorRender: {
3368
3363
  readonly const: true;
3369
3364
  readonly default: true;
3370
3365
  };
3366
+ } & {
3367
+ readonly _vertexBuffer: {
3368
+ readonly default: GPUBuffer | null;
3369
+ readonly nonPersistent: true;
3370
+ };
3371
+ readonly _skinVertexBuffer: {
3372
+ readonly default: GPUBuffer | null;
3373
+ readonly nonPersistent: true;
3374
+ };
3375
+ readonly _indexBuffer: {
3376
+ readonly default: GPUBuffer | null;
3377
+ readonly nonPersistent: true;
3378
+ };
3379
+ readonly _indexCount: {
3380
+ readonly default: undefined;
3381
+ readonly nonPersistent: true;
3382
+ readonly type: "integer";
3383
+ readonly minimum: 0;
3384
+ readonly maximum: 4294967295;
3385
+ };
3386
+ readonly _indexFormat: {
3387
+ readonly default: GPUIndexFormat;
3388
+ readonly nonPersistent: true;
3389
+ };
3390
+ readonly _materialBindGroup: {
3391
+ readonly default: GPUBindGroup | null;
3392
+ readonly nonPersistent: true;
3393
+ };
3394
+ readonly _mesh: {
3395
+ readonly default: undefined;
3396
+ readonly nonPersistent: true;
3397
+ readonly type: "integer";
3398
+ readonly minimum: -2147483648;
3399
+ readonly maximum: 2147483647;
3400
+ };
3401
+ readonly _material: {
3402
+ readonly default: undefined;
3403
+ readonly nonPersistent: true;
3404
+ readonly type: "integer";
3405
+ readonly minimum: -2147483648;
3406
+ readonly maximum: 2147483647;
3407
+ };
3408
+ readonly _nodeLocalMatrix: {
3409
+ readonly default: undefined;
3410
+ readonly nonPersistent: true;
3411
+ readonly type: "array";
3412
+ readonly items: {
3413
+ readonly type: "number";
3414
+ readonly precision: 1;
3415
+ readonly default: number;
3416
+ };
3417
+ readonly minItems: 16;
3418
+ readonly maxItems: 16;
3419
+ };
3420
+ readonly _skeletonModelRef: {
3421
+ readonly default: undefined;
3422
+ readonly nonPersistent: true;
3423
+ readonly type: "integer";
3424
+ readonly minimum: -2147483648;
3425
+ readonly maximum: 2147483647;
3426
+ };
3427
+ readonly _skeletonJointMatrixBindGroup: {
3428
+ readonly default: GPUBindGroup | null;
3429
+ readonly nonPersistent: true;
3430
+ };
3371
3431
  }>, import("@adobe/data/schema").FromSchemas<{} & {
3372
3432
  readonly _gltfMeshByUrl: {
3373
3433
  readonly default: Map<string, Entity> | null;
3374
3434
  readonly nonPersistent: true;
3435
+ readonly mutable: true;
3375
3436
  };
3376
3437
  } & {
3377
3438
  readonly frameTime: {
@@ -3392,9 +3453,6 @@ export declare const pbrFactorRender: {
3392
3453
  readonly nonPersistent: true;
3393
3454
  };
3394
3455
  }>, {} & {} & {
3395
- readonly _VisibleMaterial: readonly ["nonPersistent", "_materialBindGroup", "_mesh"];
3396
- readonly _PbrPrimitive: readonly ["nonPersistent", "_vertexBuffer", "_skinVertexBuffer", "_indexBuffer", "_indexCount", "_indexFormat", "_material", "_mesh", "_nodeLocalMatrix"];
3397
- } & {
3398
3456
  readonly Node: readonly ["position", "rotation", "scale", "parent", "visible"];
3399
3457
  } & {} & {
3400
3458
  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"];
@@ -3409,7 +3467,10 @@ export declare const pbrFactorRender: {
3409
3467
  readonly AnimationClip: readonly ["animationClipTracks", "animationClipDuration"];
3410
3468
  readonly Animation: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying"];
3411
3469
  readonly AnimationObservable: readonly ["animationClipRef", "animationTargets", "animationTime", "animationSpeed", "animationLoop", "animationPlaying", "animationObservable"];
3412
- } & {}, {} & {} & {} & {
3470
+ } & {} & {
3471
+ readonly _VisibleMaterial: readonly ["nonPersistent", "_materialBindGroup", "_mesh"];
3472
+ readonly _PbrPrimitive: readonly ["nonPersistent", "_vertexBuffer", "_skinVertexBuffer", "_indexBuffer", "_indexCount", "_indexFormat", "_material", "_mesh", "_nodeLocalMatrix"];
3473
+ }, {} & {} & {
3413
3474
  readonly nodeChildrenOf: {
3414
3475
  readonly key: "parent";
3415
3476
  readonly archetype: "Node";
@@ -3420,64 +3481,9 @@ export declare const pbrFactorRender: {
3420
3481
  readonly unique: true;
3421
3482
  readonly archetype: "Material";
3422
3483
  };
3423
- } & {} & {} & {} & {}, never>, args: import("../../public.js").LoadedArgs) => void;
3424
- } & {
3425
- readonly setLight: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{}>, import("@adobe/data/schema").FromSchemas<{
3426
- readonly light: {
3427
- readonly default: import("../../scene/light/public.js");
3428
- };
3429
- }>, {}, {}, never>, args: Partial<import("../../scene/light/public.js")>) => void;
3430
- } & {
3431
- readonly setCanvas: (t: import("@adobe/data/ecs").Store<import("@adobe/data/schema").FromSchemas<{}>, import("@adobe/data/schema").FromSchemas<{
3432
- readonly renderPassEncoder: {
3433
- readonly default: GPURenderPassEncoder | null;
3434
- readonly nonPersistent: true;
3435
- };
3436
- readonly depthTexture: {
3437
- readonly default: GPUTexture | null;
3438
- readonly nonPersistent: true;
3439
- };
3440
- readonly clearColor: {
3441
- readonly default: import("@adobe/data/math").Vec4;
3442
- readonly nonPersistent: true;
3443
- };
3444
- readonly canvas: {
3445
- readonly default: HTMLCanvasElement | null;
3446
- readonly nonPersistent: true;
3447
- };
3448
- readonly canvasContext: {
3449
- readonly default: GPUCanvasContext | null;
3450
- readonly nonPersistent: true;
3451
- };
3452
- readonly canvasFormat: {
3453
- readonly default: GPUTextureFormat;
3454
- readonly nonPersistent: true;
3455
- };
3456
- readonly depthFormat: {
3457
- readonly default: GPUTextureFormat;
3458
- readonly nonPersistent: true;
3459
- };
3460
- } & {
3461
- readonly frameTime: {
3462
- readonly default: import("../../../core/frame-time/public.js");
3463
- readonly nonPersistent: true;
3464
- };
3465
- } & {
3466
- readonly schedulerState: {
3467
- readonly default: import("@adobe/data/ecs").SchedulerState;
3468
- };
3469
- } & {
3470
- readonly device: {
3471
- readonly default: GPUDevice | null;
3472
- readonly nonPersistent: true;
3473
- };
3474
- readonly commandEncoder: {
3475
- readonly default: GPUCommandEncoder | null;
3476
- readonly nonPersistent: true;
3477
- };
3478
- }>, {}, {}, never>, canvas: HTMLCanvasElement | null) => void;
3484
+ } & {} & {} & {} & {} & {}, never>, args: import("../../public.js").LoadedArgs) => void;
3479
3485
  } & {} & {} & {} & {};
3480
- readonly systems: import("@adobe/data/ecs").SystemDeclarations<"transformCreateWorldMatrix" | "transformSystem" | "update" | "_frameTime" | "schedulerSystem" | "input" | "preUpdate" | "postUpdate" | "physics" | "preRender" | "render" | "postRender" | "animationSampleSystem" | "modelLoadSystem" | "materialPaletteGpuBuilder" | "configureCanvas" | "beginRenderPass" | "endRenderPass" | "updateCameraAspect" | "sceneUniformsSystem" | "iblInitSystem" | "pbrIblRenderSystem" | "pbrFactorPrimitiveRenderSystem">;
3486
+ readonly systems: import("@adobe/data/ecs").SystemDeclarations<"transformCreateWorldMatrix" | "transformSystem" | "update" | "_frameTime" | "schedulerSystem" | "input" | "preUpdate" | "postUpdate" | "physics" | "preRender" | "render" | "postRender" | "configureCanvas" | "beginRenderPass" | "endRenderPass" | "updateCameraAspect" | "sceneUniformsSystem" | "animationSampleSystem" | "modelLoadSystem" | "iblInitSystem" | "pbrIblRenderSystem" | "materialPaletteGpuBuilder" | "pbrFactorPrimitiveRenderSystem">;
3481
3487
  readonly actions: {};
3482
3488
  readonly services: {};
3483
3489
  readonly computed: {};