@woosh/meep-engine 3.76.0 → 3.77.0
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/editor/particles/effect/ParticleReferenceSimulation.d.ts +11 -0
- package/editor/particles/effect/ParticleReferenceSimulation.d.ts.map +1 -1
- package/editor/particles/effect/ParticleReferenceSimulation.js +14 -0
- package/editor/view/particles/effect/ParticleGraphEditorView.js +1 -1
- package/package.json +1 -1
- package/src/engine/asset/loaders/GroomAssetLoader.d.ts +1 -1
- package/src/engine/asset/loaders/GroomAssetLoader.d.ts.map +1 -1
- package/src/engine/asset/loaders/GroomAssetLoader.js +16 -2
- package/src/engine/graphics/ecs/hair/Hair.d.ts +7 -0
- package/src/engine/graphics/ecs/hair/Hair.d.ts.map +1 -1
- package/src/engine/graphics/ecs/hair/Hair.js +9 -0
- package/src/engine/graphics/ecs/hair/HairDynamics.d.ts +63 -0
- package/src/engine/graphics/ecs/hair/HairDynamics.d.ts.map +1 -0
- package/src/engine/graphics/ecs/hair/HairDynamics.js +82 -0
- package/src/engine/graphics/hair/Groom.d.ts +45 -0
- package/src/engine/graphics/hair/Groom.d.ts.map +1 -1
- package/src/engine/graphics/hair/Groom.js +56 -0
- package/src/engine/graphics/hair/GroomSerializationAdapter.d.ts +27 -1
- package/src/engine/graphics/hair/GroomSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/hair/GroomSerializationAdapter.js +105 -32
- package/src/engine/graphics/hair/GroomSerializationUpgrader_0_1.d.ts +8 -0
- package/src/engine/graphics/hair/GroomSerializationUpgrader_0_1.d.ts.map +1 -0
- package/src/engine/graphics/hair/GroomSerializationUpgrader_0_1.js +31 -0
- package/src/engine/graphics/hair/groom_bind_to_mesh.d.ts +85 -0
- package/src/engine/graphics/hair/groom_bind_to_mesh.d.ts.map +1 -0
- package/src/engine/graphics/hair/groom_bind_to_mesh.js +216 -0
- package/src/engine/graphics/hair/groom_build_group.d.ts +7 -2
- package/src/engine/graphics/hair/groom_build_group.d.ts.map +1 -1
- package/src/engine/graphics/hair/groom_build_group.js +11 -2
- package/src/engine/graphics/hair/groom_build_guides.d.ts +43 -0
- package/src/engine/graphics/hair/groom_build_guides.d.ts.map +1 -0
- package/src/engine/graphics/hair/groom_build_guides.js +267 -0
- package/src/engine/graphics/hair/groom_root_spacing.d.ts +6 -4
- package/src/engine/graphics/hair/groom_root_spacing.d.ts.map +1 -1
- package/src/engine/graphics/hair/groom_root_spacing.js +199 -66
- package/src/engine/graphics3/HairColliderSystem.d.ts +59 -0
- package/src/engine/graphics3/HairColliderSystem.d.ts.map +1 -0
- package/src/engine/graphics3/HairColliderSystem.js +270 -0
- package/src/engine/graphics3/HairSystem.d.ts +21 -4
- package/src/engine/graphics3/HairSystem.d.ts.map +1 -1
- package/src/engine/graphics3/HairSystem.js +270 -4
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
- package/src/shade/assets/textures/hair_scattering.bin +0 -0
- package/src/shade/playground/hair/main.js +27 -4
- package/src/shade/playground/hair_skinned/index.html +192 -0
- package/src/shade/playground/hair_skinned/main.d.ts +7 -0
- package/src/shade/playground/hair_skinned/main.d.ts.map +1 -0
- package/src/shade/playground/hair_skinned/main.js +481 -0
- package/src/shade/playground/hair_skinned/skinned_hair.d.ts +49 -0
- package/src/shade/playground/hair_skinned/skinned_hair.d.ts.map +1 -0
- package/src/shade/playground/hair_skinned/skinned_hair.js +362 -0
- package/src/shade/playground/sparks/README.md +36 -0
- package/src/shade/playground/sparks/index.html +145 -0
- package/src/shade/playground/sparks/main.d.ts +7 -0
- package/src/shade/playground/sparks/main.d.ts.map +1 -0
- package/src/shade/playground/sparks/main.js +312 -0
- package/src/shade/playground/sparks/sparks_effect.d.ts +72 -0
- package/src/shade/playground/sparks/sparks_effect.d.ts.map +1 -0
- package/src/shade/playground/sparks/sparks_effect.js +180 -0
- package/src/shade/renderer/Renderer.d.ts.map +1 -1
- package/src/shade/renderer/Renderer.js +18 -3
- package/src/shade/renderer/acoustics/GPUAcousticLattice.d.ts +1 -1
- package/src/shade/renderer/acoustics/GPUAcousticProbes.d.ts +1 -1
- package/src/shade/renderer/acoustics/GPUAcoustics.d.ts +1 -1
- package/src/shade/renderer/animation/GPUAnimationManager.d.ts +3 -2
- package/src/shade/renderer/animation/GPUAnimationManager.d.ts.map +1 -1
- package/src/shade/renderer/animation/GPUAnimationManager.js +74 -3
- package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.d.ts +13 -3
- package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.d.ts.map +1 -1
- package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.js +16 -5
- package/src/shade/renderer/animation/skinning/shader_meshlet_apply_skinning.js +8 -8
- package/src/shade/renderer/deferred/chunk_shade_direct_lights.js +2 -2
- package/src/shade/renderer/deferred/chunk_shade_directional_lights.d.ts +4 -2
- package/src/shade/renderer/deferred/chunk_shade_directional_lights.d.ts.map +1 -1
- package/src/shade/renderer/deferred/chunk_shade_directional_lights.js +7 -3
- package/src/shade/renderer/deferred/chunk_standard_material_direct_light_lobe.js +1 -1
- package/src/shade/renderer/extension/ShadowAtlas.d.ts +75 -0
- package/src/shade/renderer/extension/ShadowAtlas.d.ts.map +1 -0
- package/src/shade/renderer/extension/ShadowAtlas.js +133 -0
- package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +3 -3
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +1 -1
- package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +7 -7
- package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
- package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts +37 -7
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js +132 -8
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts +3 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js +6 -2
- package/src/shade/renderer/global_illumination/sharc/sharc_constants.d.ts +0 -18
- package/src/shade/renderer/global_illumination/sharc/sharc_constants.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/sharc/sharc_constants.js +1 -21
- package/src/shade/renderer/hair/GPUHairSystem.d.ts +121 -2
- package/src/shade/renderer/hair/GPUHairSystem.d.ts.map +1 -1
- package/src/shade/renderer/hair/GPUHairSystem.js +1187 -56
- package/src/shade/renderer/hair/HAIR.d.ts +22 -3
- package/src/shade/renderer/hair/HAIR.d.ts.map +1 -1
- package/src/shade/renderer/hair/HAIR.js +25 -4
- package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.d.ts.map +1 -1
- package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.js +33 -0
- package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.d.ts +4 -0
- package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.d.ts.map +1 -1
- package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.js +24 -2
- package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts +139 -0
- package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts.map +1 -0
- package/src/shade/renderer/hair/HAIR_SIMULATION.js +160 -0
- package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts +9 -2
- package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts.map +1 -1
- package/src/shade/renderer/hair/chunk_hair_dual_scattering.js +40 -13
- package/src/shade/renderer/hair/chunk_hair_guide.d.ts +59 -0
- package/src/shade/renderer/hair/chunk_hair_guide.d.ts.map +1 -0
- package/src/shade/renderer/hair/chunk_hair_guide.js +179 -0
- package/src/shade/renderer/hair/chunk_hair_volume.d.ts +4 -3
- package/src/shade/renderer/hair/chunk_hair_volume.d.ts.map +1 -1
- package/src/shade/renderer/hair/chunk_hair_volume.js +21 -12
- package/src/shade/renderer/hair/hair_lighting.d.ts.map +1 -1
- package/src/shade/renderer/hair/hair_lighting.js +16 -7
- package/src/shade/renderer/hair/hair_scattering_lut.js +13 -13
- package/src/shade/renderer/hair/hair_shadow_draw.d.ts +32 -0
- package/src/shade/renderer/hair/hair_shadow_draw.d.ts.map +1 -0
- package/src/shade/renderer/hair/hair_shadow_draw.js +123 -0
- package/src/shade/renderer/hair/shader_hair_classes.d.ts +2 -1
- package/src/shade/renderer/hair/shader_hair_classes.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_classes.js +6 -2
- package/src/shade/renderer/hair/shader_hair_cull.d.ts +8 -2
- package/src/shade/renderer/hair/shader_hair_cull.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_cull.js +74 -17
- package/src/shade/renderer/hair/shader_hair_lod.d.ts +9 -3
- package/src/shade/renderer/hair/shader_hair_lod.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_lod.js +125 -31
- package/src/shade/renderer/hair/shader_hair_roots.d.ts +36 -0
- package/src/shade/renderer/hair/shader_hair_roots.d.ts.map +1 -0
- package/src/shade/renderer/hair/shader_hair_roots.js +261 -0
- package/src/shade/renderer/hair/shader_hair_shadow_list.d.ts +44 -0
- package/src/shade/renderer/hair/shader_hair_shadow_list.d.ts.map +1 -0
- package/src/shade/renderer/hair/shader_hair_shadow_list.js +240 -0
- package/src/shade/renderer/hair/shader_hair_simulate.d.ts +55 -0
- package/src/shade/renderer/hair/shader_hair_simulate.d.ts.map +1 -0
- package/src/shade/renderer/hair/shader_hair_simulate.js +563 -0
- package/src/shade/renderer/hair/shader_hair_volume.d.ts +3 -3
- package/src/shade/renderer/hair/shader_hair_volume.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_volume.js +4 -17
- package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
- package/src/shade/renderer/loader/usd/usd_groom_extension.d.ts +8 -3
- package/src/shade/renderer/loader/usd/usd_groom_extension.d.ts.map +1 -1
- package/src/shade/renderer/loader/usd/usd_groom_extension.js +58 -5
- package/src/shade/renderer/particles/GPUParticleSystem.d.ts +8 -0
- package/src/shade/renderer/particles/GPUParticleSystem.d.ts.map +1 -1
- package/src/shade/renderer/particles/GPUParticleSystem.js +28 -0
- package/src/shade/renderer/particles/graph/ParticleNodeRegistry.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph/ParticleNodeRegistry.js +22 -0
- package/src/shade/renderer/particles/graph/groups/particle_builtin_groups.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph/groups/particle_builtin_groups.js +4 -0
- package/src/shade/renderer/particles/graph/groups/particle_groups_scene.d.ts +32 -0
- package/src/shade/renderer/particles/graph/groups/particle_groups_scene.d.ts.map +1 -0
- package/src/shade/renderer/particles/graph/groups/particle_groups_scene.js +80 -0
- package/src/shade/renderer/particles/graph/particle_node_parameters.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph/particle_node_parameters.js +1 -0
- package/src/shade/renderer/particles/graph/particle_node_presentation.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph/particle_node_presentation.js +12 -0
- package/src/shade/renderer/particles/graph_particles.d.ts +5 -1
- package/src/shade/renderer/particles/graph_particles.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph_particles.js +18 -3
- package/src/shade/renderer/particles/isa/InstructionStream.d.ts +25 -0
- package/src/shade/renderer/particles/isa/InstructionStream.d.ts.map +1 -1
- package/src/shade/renderer/particles/isa/InstructionStream.js +25 -0
- package/src/shade/renderer/particles/isa/ParticleVMISA.d.ts +9 -0
- package/src/shade/renderer/particles/isa/ParticleVMISA.d.ts.map +1 -1
- package/src/shade/renderer/particles/isa/ParticleVMISA.js +20 -0
- package/src/shade/renderer/particles/isa/particle_program_reads_scene_sdf.d.ts +9 -0
- package/src/shade/renderer/particles/isa/particle_program_reads_scene_sdf.d.ts.map +1 -0
- package/src/shade/renderer/particles/isa/particle_program_reads_scene_sdf.js +29 -0
- package/src/shade/renderer/particles/optimizer/particle_program_equivalence.d.ts +2 -1
- package/src/shade/renderer/particles/optimizer/particle_program_equivalence.d.ts.map +1 -1
- package/src/shade/renderer/particles/optimizer/particle_program_equivalence.js +27 -5
- package/src/shade/renderer/particles/optimizer/particle_program_fuzz.js +1 -1
- package/src/shade/renderer/particles/optimizer/particle_vm_semantics.d.ts.map +1 -1
- package/src/shade/renderer/particles/optimizer/particle_vm_semantics.js +5 -0
- package/src/shade/renderer/particles/runtime/EmitterRegistry.d.ts +7 -0
- package/src/shade/renderer/particles/runtime/EmitterRegistry.d.ts.map +1 -1
- package/src/shade/renderer/particles/runtime/EmitterRegistry.js +10 -0
- package/src/shade/renderer/particles/runtime/ParticleEmitter.d.ts +5 -0
- package/src/shade/renderer/particles/runtime/ParticleEmitter.d.ts.map +1 -1
- package/src/shade/renderer/particles/runtime/ParticleEmitter.js +5 -0
- package/src/shade/renderer/particles/runtime/ProgramHeap.d.ts +8 -0
- package/src/shade/renderer/particles/runtime/ProgramHeap.d.ts.map +1 -1
- package/src/shade/renderer/particles/runtime/ProgramHeap.js +25 -0
- package/src/shade/renderer/particles/shaders/shader_particle_emit.d.ts +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_emit.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_emit.js +9 -3
- package/src/shade/renderer/particles/shaders/shader_particle_emit_wide.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_emit_wide.js +4 -2
- package/src/shade/renderer/particles/shaders/shader_particle_simulate.d.ts +2 -2
- package/src/shade/renderer/particles/shaders/shader_particle_simulate.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_simulate.js +10 -4
- package/src/shade/renderer/particles/shaders/shader_particle_simulate_wide.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_simulate_wide.js +4 -2
- package/src/shade/renderer/particles/vm/ParticleVMReference.d.ts +14 -1
- package/src/shade/renderer/particles/vm/ParticleVMReference.d.ts.map +1 -1
- package/src/shade/renderer/particles/vm/ParticleVMReference.js +34 -1
- package/src/shade/renderer/particles/vm/chunk_particle_vm.d.ts.map +1 -1
- package/src/shade/renderer/particles/vm/chunk_particle_vm.js +10 -0
- package/src/shade/renderer/particles/vm/chunk_particle_vm_scene_sdf.d.ts +39 -0
- package/src/shade/renderer/particles/vm/chunk_particle_vm_scene_sdf.d.ts.map +1 -0
- package/src/shade/renderer/particles/vm/chunk_particle_vm_scene_sdf.js +90 -0
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts +4 -1
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts.map +1 -1
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.js +14 -2
- package/src/shade/renderer/particles/warmup/shader_particle_warmup_advance.d.ts +1 -1
- package/src/shade/renderer/particles/warmup/shader_particle_warmup_advance.d.ts.map +1 -1
- package/src/shade/renderer/particles/warmup/shader_particle_warmup_advance.js +9 -3
- package/src/shade/renderer/particles/warmup/shader_particle_warmup_advance_wide.d.ts.map +1 -1
- package/src/shade/renderer/particles/warmup/shader_particle_warmup_advance_wide.js +4 -2
- package/src/shade/renderer/postprocess/nss/NSS.d.ts +1 -1
- package/src/shade/renderer/postprocess/velocity/graph_add_per_object_velocity.d.ts +7 -4
- package/src/shade/renderer/postprocess/velocity/graph_add_per_object_velocity.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/velocity/graph_add_per_object_velocity.js +26 -16
- package/src/shade/renderer/scene/GPUSceneContext.d.ts +7 -0
- package/src/shade/renderer/scene/GPUSceneContext.d.ts.map +1 -1
- package/src/shade/renderer/scene/GPUSceneContext.js +18 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_signed_distance_gradient.d.ts +20 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_signed_distance_gradient.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_signed_distance_gradient.js +134 -0
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts +15 -0
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +69 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_directional_atlas_casters.d.ts +10 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_directional_atlas_casters.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_directional_atlas_casters.js +22 -0
- package/src/shade/renderer/water/query/GPUWaterQueries.d.ts +1 -1
- package/src/shade/renderer/wind/GPUSceneWind.d.ts +1 -1
|
@@ -57,9 +57,11 @@ export function u32_to_unit_f32(u: number): number;
|
|
|
57
57
|
* @param {number} [params.rng_state] initial RNG state (u32)
|
|
58
58
|
* @param {ParticleVMWindSampler|null} [params.sample_wind] how `SAMPLE_WIND` is answered; still air
|
|
59
59
|
* when left out
|
|
60
|
+
* @param {ParticleVMSceneSdfSampler|null} [params.sample_scene_sdf] how `SAMPLE_SCENE_DISTANCE` and
|
|
61
|
+
* `SAMPLE_SCENE_SDF` are answered; no field when left out
|
|
60
62
|
* @returns {{ killed: boolean, rng_state: number }}
|
|
61
63
|
*/
|
|
62
|
-
export function execute_particle_vm({ words, constants, register_count, record, builtins, emitter_fields, global_fields, rng_state, sample_wind, }: {
|
|
64
|
+
export function execute_particle_vm({ words, constants, register_count, record, builtins, emitter_fields, global_fields, rng_state, sample_wind, sample_scene_sdf, }: {
|
|
63
65
|
words: Uint32Array;
|
|
64
66
|
constants: Float32Array;
|
|
65
67
|
register_count: number;
|
|
@@ -69,6 +71,7 @@ export function execute_particle_vm({ words, constants, register_count, record,
|
|
|
69
71
|
global_fields?: Uint32Array;
|
|
70
72
|
rng_state?: number;
|
|
71
73
|
sample_wind?: ParticleVMWindSampler | null;
|
|
74
|
+
sample_scene_sdf?: ParticleVMSceneSdfSampler | null;
|
|
72
75
|
}): {
|
|
73
76
|
killed: boolean;
|
|
74
77
|
rng_state: number;
|
|
@@ -85,4 +88,14 @@ export function execute_particle_vm({ words, constants, register_count, record,
|
|
|
85
88
|
* every live particle every frame.
|
|
86
89
|
*/
|
|
87
90
|
export type ParticleVMWindSampler = (out: Float32Array, x: number, y: number, z: number) => void;
|
|
91
|
+
/**
|
|
92
|
+
* How a CPU host answers `SAMPLE_SCENE_DISTANCE` and `SAMPLE_SCENE_SDF`: the scene's signed distance at a world
|
|
93
|
+
* position, metres and out of the solid positive, written into `out[0]`, and the field's unit normal there into
|
|
94
|
+
* `out[1]`, `out[2]` and `out[3]`, zero where it has none to give. `SAMPLE_SCENE_DISTANCE` keeps the first lane.
|
|
95
|
+
*
|
|
96
|
+
* On the GPU the field is the scene's brick clipmap (`./chunk_particle_vm_scene_sdf.js`). A CPU host answers what
|
|
97
|
+
* it can, and one that answers nothing reads no field: `out` is a scratch of the executor's own holding
|
|
98
|
+
* `VM_SCENE_DISTANCE_ABSENT` and three zeros on entry. Called once per executed read; it must not allocate.
|
|
99
|
+
*/
|
|
100
|
+
export type ParticleVMSceneSdfSampler = (out: Float32Array, x: number, y: number, z: number) => void;
|
|
88
101
|
//# sourceMappingURL=ParticleVMReference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParticleVMReference.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/vm/ParticleVMReference.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParticleVMReference.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/vm/ParticleVMReference.js"],"names":[],"mappings":"AAgCA;;;;;;;GAOG;AACH,gCAHW,MAAM,GACJ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAW5C;AAED;;;;;GAKG;AACH,mCAHW,MAAM,GACJ,MAAM,CAIlB;AA6GD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH;IAlB+B,KAAK,EAAzB,WAAW;IACU,SAAS,EAA9B,YAAY;IACG,cAAc,EAA7B,MAAM;IACc,MAAM,EAA1B,WAAW;IAES,QAAQ,GAA5B,MAAM,EAAE,EAAE;IACW,cAAc,GAAnC,WAAW;IAEU,aAAa,GAAlC,WAAW;IAGK,SAAS,GAAzB,MAAM;IAC8B,WAAW,GAA/C,qBAAqB,GAAC,IAAI;IAEc,gBAAgB,GAAxD,yBAAyB,GAAC,IAAI;IAE5B;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAiYlD;;;;;;;;;;;;0CAzcU,YAAY,KACZ,MAAM,KACN,MAAM,KACN,MAAM,KACJ,IAAI;;;;;;;;;;8CAaN,YAAY,KACZ,MAAM,KACN,MAAM,KACN,MAAM,KACJ,IAAI"}
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
VM_OP_MASK,
|
|
22
22
|
VM_OPERAND_BASE_MASK,
|
|
23
23
|
VM_OPERAND_SWIZZLE_SHIFT,
|
|
24
|
+
VM_SCENE_DISTANCE_ABSENT,
|
|
24
25
|
VM_SWIZZLE_IDENTITY,
|
|
25
26
|
VM_WIDTH,
|
|
26
27
|
VM_WIDTH_MASK,
|
|
@@ -92,7 +93,8 @@ for (const [op, meta] of VM_ISA) {
|
|
|
92
93
|
const {
|
|
93
94
|
ABS, ACOS, ADD, ASIN, ATAN2, CLAMP, CMP_EQ, CMP_GE, CMP_GT, CMP_LE, CMP_LT, COS, CROSS,
|
|
94
95
|
DISTANCE, DIV, DOT, EXP, FLOOR, FRACT, HALT, KILL, LENGTH, LOAD_PARTICLE_FIELD, LOAD_BUILTIN, LOAD_CONST,
|
|
95
|
-
LOG, MAD, MAX, MIN, MIX, MOV, MUL, NEG, NOP, NORMALIZE, POW, RANDOM, RSQRT,
|
|
96
|
+
LOG, MAD, MAX, MIN, MIX, MOV, MUL, NEG, NOP, NORMALIZE, POW, RANDOM, RSQRT, SAMPLE_SCENE_DISTANCE,
|
|
97
|
+
SAMPLE_SCENE_SDF, SAMPLE_WIND, SELECT,
|
|
96
98
|
SIN, SMOOTHSTEP, SQRT, STEP, STORE_PARTICLE_FIELD, SUB, TAN,
|
|
97
99
|
} = VM_OP;
|
|
98
100
|
const KIND_REG = VM_KIND.REG;
|
|
@@ -141,6 +143,23 @@ const MAX_WIDTH = VM_MAX_WIDTH;
|
|
|
141
143
|
* @returns {void}
|
|
142
144
|
*/
|
|
143
145
|
|
|
146
|
+
/**
|
|
147
|
+
* How a CPU host answers `SAMPLE_SCENE_DISTANCE` and `SAMPLE_SCENE_SDF`: the scene's signed distance at a world
|
|
148
|
+
* position, metres and out of the solid positive, written into `out[0]`, and the field's unit normal there into
|
|
149
|
+
* `out[1]`, `out[2]` and `out[3]`, zero where it has none to give. `SAMPLE_SCENE_DISTANCE` keeps the first lane.
|
|
150
|
+
*
|
|
151
|
+
* On the GPU the field is the scene's brick clipmap (`./chunk_particle_vm_scene_sdf.js`). A CPU host answers what
|
|
152
|
+
* it can, and one that answers nothing reads no field: `out` is a scratch of the executor's own holding
|
|
153
|
+
* `VM_SCENE_DISTANCE_ABSENT` and three zeros on entry. Called once per executed read; it must not allocate.
|
|
154
|
+
*
|
|
155
|
+
* @callback ParticleVMSceneSdfSampler
|
|
156
|
+
* @param {Float32Array} out where the four lanes go
|
|
157
|
+
* @param {number} x world position
|
|
158
|
+
* @param {number} y
|
|
159
|
+
* @param {number} z
|
|
160
|
+
* @returns {void}
|
|
161
|
+
*/
|
|
162
|
+
|
|
144
163
|
/** Scratch for reading a literal's bits as the `f32` they are. */
|
|
145
164
|
const LITERAL_F32 = new Float32Array(1);
|
|
146
165
|
|
|
@@ -187,6 +206,8 @@ const LITERAL_U32 = new Uint32Array(LITERAL_F32.buffer);
|
|
|
187
206
|
* @param {number} [params.rng_state] initial RNG state (u32)
|
|
188
207
|
* @param {ParticleVMWindSampler|null} [params.sample_wind] how `SAMPLE_WIND` is answered; still air
|
|
189
208
|
* when left out
|
|
209
|
+
* @param {ParticleVMSceneSdfSampler|null} [params.sample_scene_sdf] how `SAMPLE_SCENE_DISTANCE` and
|
|
210
|
+
* `SAMPLE_SCENE_SDF` are answered; no field when left out
|
|
190
211
|
* @returns {{ killed: boolean, rng_state: number }}
|
|
191
212
|
*/
|
|
192
213
|
export function execute_particle_vm({
|
|
@@ -199,6 +220,7 @@ export function execute_particle_vm({
|
|
|
199
220
|
global_fields = NO_FIELDS,
|
|
200
221
|
rng_state = 0,
|
|
201
222
|
sample_wind = null,
|
|
223
|
+
sample_scene_sdf = null,
|
|
202
224
|
}) {
|
|
203
225
|
// Register file: one f32 per slot. A value of width w occupies w consecutive slots.
|
|
204
226
|
const reg = new Float32Array(register_count);
|
|
@@ -547,6 +569,17 @@ export function execute_particle_vm({
|
|
|
547
569
|
d[3] = 0;
|
|
548
570
|
break;
|
|
549
571
|
|
|
572
|
+
// A read of the field the host binds, at the position in the first source's three lanes. The
|
|
573
|
+
// distance alone writes one lane, as a reduction does; the read with the normal writes four.
|
|
574
|
+
case SAMPLE_SCENE_DISTANCE:
|
|
575
|
+
case SAMPLE_SCENE_SDF:
|
|
576
|
+
d[0] = VM_SCENE_DISTANCE_ABSENT;
|
|
577
|
+
d[1] = 0;
|
|
578
|
+
d[2] = 0;
|
|
579
|
+
d[3] = 0;
|
|
580
|
+
if (sample_scene_sdf !== null) sample_scene_sdf(d, a[0], a[1], a[2]);
|
|
581
|
+
break;
|
|
582
|
+
|
|
550
583
|
default:
|
|
551
584
|
throw new Error(`ParticleVMReference: unhandled opcode ${op} at pc ${pc}`);
|
|
552
585
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_particle_vm.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/vm/chunk_particle_vm.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chunk_particle_vm.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/vm/chunk_particle_vm.js"],"names":[],"mappings":"AA8YA;;;GAGG;AACH,gCAFU,SAAS,CAEmG;0BAhZ5F,oCAAoC"}
|
|
@@ -129,6 +129,10 @@ import { PARTICLE_VM_CONTEXT_STRUCT } from "./PARTICLE_VM_CONTEXT_STRUCT.js";
|
|
|
129
129
|
* {@link ./chunk_particle_vm_wind_field.js}, which reads the scene's published wind field; a spec
|
|
130
130
|
* running the interpreter on its own defines a stub. The same seam as the register backing: the
|
|
131
131
|
* opcode is the VM's, what it reads is the host's.
|
|
132
|
+
* - Likewise `particle_vm_sample_scene_distance(position_ws : vec3<f32>) -> f32` and
|
|
133
|
+
* `particle_vm_sample_scene_sdf(position_ws : vec3<f32>) -> vec4<f32>` (distance, then the unit
|
|
134
|
+
* normal), which `SAMPLE_SCENE_DISTANCE` and `SAMPLE_SCENE_SDF` call: the scene's signed distance
|
|
135
|
+
* field at a world position. Every particle host includes {@link ./chunk_particle_vm_scene_sdf.js}.
|
|
132
136
|
* - Kill flag and the builtin context are module-scope `var<private>`, as is the shared `rnd_state`
|
|
133
137
|
* the RNG runs on. Call `particle_vm_reset()` at the start of each particle, seed `rnd_state`, and
|
|
134
138
|
* populate `vm_ctx` before invoking {@link particle_vm_execute}.
|
|
@@ -375,6 +379,12 @@ fn particle_vm_execute(
|
|
|
375
379
|
// The host's wind at the position in \`a\`, m/s; \`CROSS\`'s shape, a fourth lane zero.
|
|
376
380
|
case ${VM_OP.SAMPLE_WIND}u: { d = vec4<f32>(particle_vm_sample_wind(a.xyz), 0.0); }
|
|
377
381
|
|
|
382
|
+
// The host's signed distance at the position in \`a\`, metres: \`LENGTH\`'s shape, one lane.
|
|
383
|
+
case ${VM_OP.SAMPLE_SCENE_DISTANCE}u: { d.x = particle_vm_sample_scene_distance(a.xyz); lanes = 1u; }
|
|
384
|
+
|
|
385
|
+
// The distance and the unit normal there, four lanes; the position's fourth lane is not read.
|
|
386
|
+
case ${VM_OP.SAMPLE_SCENE_SDF}u: { d = particle_vm_sample_scene_sdf(a.xyz); }
|
|
387
|
+
|
|
378
388
|
default: { lanes = 0u; }
|
|
379
389
|
}
|
|
380
390
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Declare the scene brick clipmap's bindings in a particle host's resource group, as
|
|
3
|
+
* `GPUSceneBrickClipmap#write_bindings` writes them: the levels uniform, the brick map, the occupancy, the atlas
|
|
4
|
+
* and its sampler. One uniform, three textures and a sampler, and no storage buffer.
|
|
5
|
+
*
|
|
6
|
+
* @param {import("../../shader/resource/ShaderResourceGroupDescriptor.js").ShaderResourceGroupDescriptor} group
|
|
7
|
+
* @returns {import("../../shader/resource/ShaderResourceGroupDescriptor.js").ShaderResourceGroupDescriptor} group
|
|
8
|
+
*/
|
|
9
|
+
export function particle_vm_scene_sdf_add_resources(group: import("../../shader/resource/ShaderResourceGroupDescriptor.js").ShaderResourceGroupDescriptor): import("../../shader/resource/ShaderResourceGroupDescriptor.js").ShaderResourceGroupDescriptor;
|
|
10
|
+
/**
|
|
11
|
+
* The particle VM's reads of the scene's signed distance field, the brick clipmap a scene keeps for its readers
|
|
12
|
+
* (`GPUSceneBrickClipmap`):
|
|
13
|
+
*
|
|
14
|
+
* ```wgsl
|
|
15
|
+
* fn particle_vm_sample_scene_distance(position_ws : vec3<f32>) -> f32 // metres, out of the solid positive
|
|
16
|
+
* fn particle_vm_sample_scene_sdf(position_ws : vec3<f32>) -> vec4<f32> // (distance, unit normal out of the solid)
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* The interpreter ({@link ./chunk_particle_vm.js}) names both and defines neither, as it does the wind: what a
|
|
20
|
+
* read IS belongs to the host, and every particle host includes this chunk — emit, simulate, their wide variants
|
|
21
|
+
* and the warm-up's advance. A spec that runs the interpreter on its own supplies stubs in their place.
|
|
22
|
+
*
|
|
23
|
+
* The distance is the clipmap's at the point, `brick_clipmap_point`: the finest cascade whose window holds it,
|
|
24
|
+
* a band of `MESH_SDF_BAND_VOXELS` voxels of that cascade around every surface, and past the band a bound — the
|
|
25
|
+
* surface is at least that far. The normal is the field's gradient inside the answering brick,
|
|
26
|
+
* `brick_clipmap_normal`, and zero wherever no brick answers: past the band, outside every window, and where the
|
|
27
|
+
* field is flat.
|
|
28
|
+
*
|
|
29
|
+
* The host declares the bindings with {@link particle_vm_scene_sdf_add_resources}, fills them with
|
|
30
|
+
* `GPUSceneBrickClipmap#write_bindings` every frame, and carries `u_brick_cascade_count` and
|
|
31
|
+
* `u_brick_atlas_shift` in its immediate data `settings`, from that service's `cascade_count` and `atlas_shift`.
|
|
32
|
+
* A count of zero is no field: every read answers {@link VM_SCENE_DISTANCE_ABSENT} with a zero normal, which is
|
|
33
|
+
* what a scene whose clipmap nobody has built reads.
|
|
34
|
+
*
|
|
35
|
+
* @type {CodeChunk}
|
|
36
|
+
*/
|
|
37
|
+
export const chunk_particle_vm_scene_sdf: CodeChunk;
|
|
38
|
+
import { CodeChunk } from "../../shader/compiler/CodeChunk.js";
|
|
39
|
+
//# sourceMappingURL=chunk_particle_vm_scene_sdf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk_particle_vm_scene_sdf.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/vm/chunk_particle_vm_scene_sdf.js"],"names":[],"mappings":"AA0EA;;;;;;;GAOG;AACH,2DAHW,OAAO,wDAAwD,EAAE,6BAA6B,GAC5F,OAAO,wDAAwD,EAAE,6BAA6B,CAS1G;AA7ED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,0CAFU,SAAS,CAmChB;0BA/DuB,oCAAoC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BRICK_ATLAS_TEXTURE_RESOURCE,
|
|
3
|
+
BRICK_LEVELS_RESOURCE,
|
|
4
|
+
BRICK_MAP_TEXTURE_RESOURCE,
|
|
5
|
+
BRICK_OCCUPANCY_TEXTURE_RESOURCE,
|
|
6
|
+
BRICK_SAMPLER_RESOURCE,
|
|
7
|
+
chunk_brick_clipmap_distance,
|
|
8
|
+
chunk_brick_clipmap_sample,
|
|
9
|
+
} from "../../global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js";
|
|
10
|
+
import { CodeChunk } from "../../shader/compiler/CodeChunk.js";
|
|
11
|
+
import { VM_SCENE_DISTANCE_ABSENT } from "../isa/ParticleVMISA.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The particle VM's reads of the scene's signed distance field, the brick clipmap a scene keeps for its readers
|
|
15
|
+
* (`GPUSceneBrickClipmap`):
|
|
16
|
+
*
|
|
17
|
+
* ```wgsl
|
|
18
|
+
* fn particle_vm_sample_scene_distance(position_ws : vec3<f32>) -> f32 // metres, out of the solid positive
|
|
19
|
+
* fn particle_vm_sample_scene_sdf(position_ws : vec3<f32>) -> vec4<f32> // (distance, unit normal out of the solid)
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* The interpreter ({@link ./chunk_particle_vm.js}) names both and defines neither, as it does the wind: what a
|
|
23
|
+
* read IS belongs to the host, and every particle host includes this chunk — emit, simulate, their wide variants
|
|
24
|
+
* and the warm-up's advance. A spec that runs the interpreter on its own supplies stubs in their place.
|
|
25
|
+
*
|
|
26
|
+
* The distance is the clipmap's at the point, `brick_clipmap_point`: the finest cascade whose window holds it,
|
|
27
|
+
* a band of `MESH_SDF_BAND_VOXELS` voxels of that cascade around every surface, and past the band a bound — the
|
|
28
|
+
* surface is at least that far. The normal is the field's gradient inside the answering brick,
|
|
29
|
+
* `brick_clipmap_normal`, and zero wherever no brick answers: past the band, outside every window, and where the
|
|
30
|
+
* field is flat.
|
|
31
|
+
*
|
|
32
|
+
* The host declares the bindings with {@link particle_vm_scene_sdf_add_resources}, fills them with
|
|
33
|
+
* `GPUSceneBrickClipmap#write_bindings` every frame, and carries `u_brick_cascade_count` and
|
|
34
|
+
* `u_brick_atlas_shift` in its immediate data `settings`, from that service's `cascade_count` and `atlas_shift`.
|
|
35
|
+
* A count of zero is no field: every read answers {@link VM_SCENE_DISTANCE_ABSENT} with a zero normal, which is
|
|
36
|
+
* what a scene whose clipmap nobody has built reads.
|
|
37
|
+
*
|
|
38
|
+
* @type {CodeChunk}
|
|
39
|
+
*/
|
|
40
|
+
export const chunk_particle_vm_scene_sdf = CodeChunk.from(/* language=wgsl */ `
|
|
41
|
+
const VM_SCENE_DISTANCE_ABSENT : f32 = ${VM_SCENE_DISTANCE_ABSENT}f;
|
|
42
|
+
|
|
43
|
+
fn particle_vm_sample_scene_distance(position_ws : vec3<f32>) -> f32 {
|
|
44
|
+
let cascades = settings.u_brick_cascade_count;
|
|
45
|
+
|
|
46
|
+
if (cascades == 0u) {
|
|
47
|
+
return VM_SCENE_DISTANCE_ABSENT;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return brick_clipmap_distance(position_ws, cascades, settings.u_brick_atlas_shift);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
fn particle_vm_sample_scene_sdf(position_ws : vec3<f32>) -> vec4<f32> {
|
|
54
|
+
let cascades = settings.u_brick_cascade_count;
|
|
55
|
+
|
|
56
|
+
if (cascades == 0u) {
|
|
57
|
+
return vec4<f32>(VM_SCENE_DISTANCE_ABSENT, 0.0, 0.0, 0.0);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
let point = brick_clipmap_point(position_ws, cascades, settings.u_brick_atlas_shift);
|
|
61
|
+
|
|
62
|
+
var normal = vec3<f32>(0.0);
|
|
63
|
+
|
|
64
|
+
if (brick_clipmap_entry_holds_slot(point.entry)) {
|
|
65
|
+
normal = brick_clipmap_normal(point.entry, point.local, settings.u_brick_atlas_shift);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return vec4<f32>(point.distance, normal);
|
|
69
|
+
}
|
|
70
|
+
`, [
|
|
71
|
+
chunk_brick_clipmap_distance,
|
|
72
|
+
chunk_brick_clipmap_sample,
|
|
73
|
+
]);
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Declare the scene brick clipmap's bindings in a particle host's resource group, as
|
|
77
|
+
* `GPUSceneBrickClipmap#write_bindings` writes them: the levels uniform, the brick map, the occupancy, the atlas
|
|
78
|
+
* and its sampler. One uniform, three textures and a sampler, and no storage buffer.
|
|
79
|
+
*
|
|
80
|
+
* @param {import("../../shader/resource/ShaderResourceGroupDescriptor.js").ShaderResourceGroupDescriptor} group
|
|
81
|
+
* @returns {import("../../shader/resource/ShaderResourceGroupDescriptor.js").ShaderResourceGroupDescriptor} group
|
|
82
|
+
*/
|
|
83
|
+
export function particle_vm_scene_sdf_add_resources(group) {
|
|
84
|
+
return group
|
|
85
|
+
.add(BRICK_LEVELS_RESOURCE)
|
|
86
|
+
.add(BRICK_MAP_TEXTURE_RESOURCE)
|
|
87
|
+
.add(BRICK_OCCUPANCY_TEXTURE_RESOURCE)
|
|
88
|
+
.add(BRICK_ATLAS_TEXTURE_RESOURCE)
|
|
89
|
+
.add(BRICK_SAMPLER_RESOURCE);
|
|
90
|
+
}
|
|
@@ -52,6 +52,8 @@
|
|
|
52
52
|
* @param {number} params.scene_database graph handle
|
|
53
53
|
* @param {import("../../wind/GPUSceneWind.js").GPUSceneWind} params.wind the scene's wind field, which
|
|
54
54
|
* the emit and the advance bind as the main passes do: a warmed particle reads the wind as it is now
|
|
55
|
+
* @param {import("../../global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js").GPUSceneBrickClipmap} params.scene_sdf
|
|
56
|
+
* the scene's brick clipmap, which the emit and the advance bind as the main passes do
|
|
55
57
|
* @param {number} params.emitter_database graph handle, threaded: the warm-up tick writes ages
|
|
56
58
|
* @param {number} params.program graph handle of the packed program buffer
|
|
57
59
|
* @param {number} params.pool main pool, threaded
|
|
@@ -72,10 +74,11 @@
|
|
|
72
74
|
* @param {number} params.frame.index
|
|
73
75
|
* @returns {{pool: number, alive_out: number, dead: number, counters: number, emitter_database: number, vm_registers: number}}
|
|
74
76
|
*/
|
|
75
|
-
export function graph_particle_warmup({ graph, scene_database, wind, emitter_database, program, pool, alive_out, dead, counters, vm_registers, queue, queue_count, warm_capacity, capacity, emitter_capacity, schedule, wide_registers, frame, }: {
|
|
77
|
+
export function graph_particle_warmup({ graph, scene_database, wind, scene_sdf, emitter_database, program, pool, alive_out, dead, counters, vm_registers, queue, queue_count, warm_capacity, capacity, emitter_capacity, schedule, wide_registers, frame, }: {
|
|
76
78
|
graph: import("../../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph;
|
|
77
79
|
scene_database: number;
|
|
78
80
|
wind: import("../../wind/GPUSceneWind.js").GPUSceneWind;
|
|
81
|
+
scene_sdf: import("../../global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js").GPUSceneBrickClipmap;
|
|
79
82
|
emitter_database: number;
|
|
80
83
|
program: number;
|
|
81
84
|
pool: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_particle_warmup.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/warmup/graph_particle_warmup.js"],"names":[],"mappings":"AAgCA
|
|
1
|
+
{"version":3,"file":"graph_particle_warmup.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/warmup/graph_particle_warmup.js"],"names":[],"mappings":"AAgCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACH;IA1BqG,KAAK,EAA/F,OAAO,8DAA8D,EAAE,UAAU;IAClE,cAAc,EAA7B,MAAM;IACoD,IAAI,EAA9D,OAAO,4BAA4B,EAAE,YAAY;IAE4D,SAAS,EAAtH,OAAO,uEAAuE,EAAE,oBAAoB;IAErF,gBAAgB,EAA/B,MAAM;IACS,OAAO,EAAtB,MAAM;IACS,IAAI,EAAnB,MAAM;IACS,SAAS,EAAxB,MAAM;IACS,IAAI,EAAnB,MAAM;IACS,QAAQ,EAAvB,MAAM;IACS,YAAY,EAA3B,MAAM;IAEY,KAAK;IACR,WAAW,EAA1B,MAAM;IACS,aAAa,EAA5B,MAAM;IACS,QAAQ,EAAvB,MAAM;IACS,gBAAgB,EAA/B,MAAM;IACgD,QAAQ,EAA9D,OAAO,sBAAsB,EAAE,cAAc;IAC7B,cAAc,EAA9B,OAAO;IACQ,KAAK;QACC,IAAI,EAAzB,MAAM;QACe,KAAK,EAA1B,MAAM;;IACJ;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAC,CAuP7H"}
|
|
@@ -84,6 +84,8 @@ import { warmup_remaining } from "./warmup_schedule.js";
|
|
|
84
84
|
* @param {number} params.scene_database graph handle
|
|
85
85
|
* @param {import("../../wind/GPUSceneWind.js").GPUSceneWind} params.wind the scene's wind field, which
|
|
86
86
|
* the emit and the advance bind as the main passes do: a warmed particle reads the wind as it is now
|
|
87
|
+
* @param {import("../../global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js").GPUSceneBrickClipmap} params.scene_sdf
|
|
88
|
+
* the scene's brick clipmap, which the emit and the advance bind as the main passes do
|
|
87
89
|
* @param {number} params.emitter_database graph handle, threaded: the warm-up tick writes ages
|
|
88
90
|
* @param {number} params.program graph handle of the packed program buffer
|
|
89
91
|
* @param {number} params.pool main pool, threaded
|
|
@@ -108,6 +110,7 @@ export function graph_particle_warmup({
|
|
|
108
110
|
graph,
|
|
109
111
|
scene_database,
|
|
110
112
|
wind,
|
|
113
|
+
scene_sdf,
|
|
111
114
|
emitter_database,
|
|
112
115
|
program,
|
|
113
116
|
pool,
|
|
@@ -126,6 +129,7 @@ export function graph_particle_warmup({
|
|
|
126
129
|
}) {
|
|
127
130
|
assert.defined(graph, "graph");
|
|
128
131
|
assert.defined(wind, "wind");
|
|
132
|
+
assert.defined(scene_sdf, "scene_sdf");
|
|
129
133
|
assert.isPositiveInteger(queue_count, "queue_count");
|
|
130
134
|
assert.isPositiveInteger(warm_capacity, "warm_capacity");
|
|
131
135
|
assert.isPositiveInteger(schedule.ticks, "schedule.ticks");
|
|
@@ -252,10 +256,14 @@ export function graph_particle_warmup({
|
|
|
252
256
|
program,
|
|
253
257
|
spawn_prefix,
|
|
254
258
|
pool: warm_pool, alive_out: alive_this, dead: warm_dead, counters: warm_counters,
|
|
255
|
-
settings: {
|
|
259
|
+
settings: {
|
|
260
|
+
u_dt: schedule.dt, u_time: time, u_frame: frame_index, u_capacity: warm_capacity,
|
|
261
|
+
u_brick_cascade_count: scene_sdf.cascade_count, u_brick_atlas_shift: scene_sdf.atlas_shift,
|
|
262
|
+
},
|
|
256
263
|
};
|
|
257
264
|
|
|
258
265
|
wind.bind(bindings);
|
|
266
|
+
scene_sdf.write_bindings(bindings);
|
|
259
267
|
|
|
260
268
|
const out = wide_registers
|
|
261
269
|
? graph_compute_pass({
|
|
@@ -286,10 +294,14 @@ export function graph_particle_warmup({
|
|
|
286
294
|
emitter_database,
|
|
287
295
|
program,
|
|
288
296
|
pool: warm_pool, alive_in, alive_out: alive_this, dead: warm_dead, counters: warm_counters,
|
|
289
|
-
settings: {
|
|
297
|
+
settings: {
|
|
298
|
+
u_dt: schedule.dt, u_time: time, u_frame: frame_index,
|
|
299
|
+
u_brick_cascade_count: scene_sdf.cascade_count, u_brick_atlas_shift: scene_sdf.atlas_shift,
|
|
300
|
+
},
|
|
290
301
|
};
|
|
291
302
|
|
|
292
303
|
wind.bind(bindings);
|
|
304
|
+
scene_sdf.write_bindings(bindings);
|
|
293
305
|
|
|
294
306
|
const out = wide_registers
|
|
295
307
|
? graph_compute_pass({
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* @type {ComputeShader}
|
|
17
17
|
*/
|
|
18
18
|
/**
|
|
19
|
-
* Per-dispatch,
|
|
19
|
+
* Per-dispatch, 20 bytes, read-only. The same numbers the main simulate takes, as a struct of
|
|
20
20
|
* this pass's own rather than that pass's export: the two must be free to diverge.
|
|
21
21
|
* @type {WebGPUStruct}
|
|
22
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shader_particle_warmup_advance.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/warmup/shader_particle_warmup_advance.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shader_particle_warmup_advance.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/warmup/shader_particle_warmup_advance.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;GAIG;AACH,sCAFU,YAAY,CAUc;AAgBpC;;;;GAIG;AACH,kCAFU,MAAM,CA4Bd;AAEF,2DAiBG;;6BA/G0B,mCAAmC;8BAClC,+BAA+B;gDAWb,6BAA6B"}
|
|
@@ -10,6 +10,7 @@ import { PARTICLE_COUNTER } from "../data/PARTICLE_COUNTERS.js";
|
|
|
10
10
|
import { chunk_slot_stack } from "../../gpu_primitive/slot_stack/chunk_slot_stack.js";
|
|
11
11
|
import { chunk_particle_vm_registers_fast } from "../vm/chunk_particle_vm_registers_fast.js";
|
|
12
12
|
import { chunk_particle_vm_wind_field } from "../vm/chunk_particle_vm_wind_field.js";
|
|
13
|
+
import { chunk_particle_vm_scene_sdf, particle_vm_scene_sdf_add_resources } from "../vm/chunk_particle_vm_scene_sdf.js";
|
|
13
14
|
import { wind_field_add_resources } from "../../wind/wind_field_add_resources.js";
|
|
14
15
|
import { chunk_particle_warmup_step } from "./chunk_particle_warmup_step.js";
|
|
15
16
|
import { PARTICLE_WARMUP_WORKGROUP_COUNT } from "./shader_particle_warmup.js";
|
|
@@ -33,7 +34,7 @@ import { PARTICLE_WARMUP_WORKGROUP_COUNT } from "./shader_particle_warmup.js";
|
|
|
33
34
|
*/
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
|
-
* Per-dispatch,
|
|
37
|
+
* Per-dispatch, 20 bytes, read-only. The same numbers the main simulate takes, as a struct of
|
|
37
38
|
* this pass's own rather than that pass's export: the two must be free to diverge.
|
|
38
39
|
* @type {WebGPUStruct}
|
|
39
40
|
*/
|
|
@@ -41,13 +42,17 @@ export const WARMUP_ADVANCE_SETTINGS = WebGPUStruct.from({
|
|
|
41
42
|
u_dt: f32,
|
|
42
43
|
u_time: f32,
|
|
43
44
|
u_frame: u32,
|
|
45
|
+
/** the scene brick clipmap's cascades for the VM's scene reads, `GPUSceneBrickClipmap#cascade_count`; 0 is no field */
|
|
46
|
+
u_brick_cascade_count: u32,
|
|
47
|
+
/** its atlas's footprint, `GPUSceneBrickClipmap#atlas_shift` */
|
|
48
|
+
u_brick_atlas_shift: u32,
|
|
44
49
|
}, "ParticleWarmupAdvanceSettings");
|
|
45
50
|
|
|
46
51
|
const resources = new ShaderResourceSetDescriptor();
|
|
47
52
|
|
|
48
53
|
resources.setImmediate("settings", WARMUP_ADVANCE_SETTINGS);
|
|
49
54
|
|
|
50
|
-
wind_field_add_resources(resources.createGroup()
|
|
55
|
+
particle_vm_scene_sdf_add_resources(wind_field_add_resources(resources.createGroup()
|
|
51
56
|
.addStorageBuffer("scene_database", WebGPUBufferType.unsized, false)
|
|
52
57
|
.addStorageBuffer("emitter_database", WebGPUBufferType.unsized, false)
|
|
53
58
|
.addStorageBuffer("program", WebGPUBufferType.unsized, false)
|
|
@@ -55,7 +60,7 @@ wind_field_add_resources(resources.createGroup()
|
|
|
55
60
|
.addStorageBuffer("alive_in", WebGPUArray.u32, false)
|
|
56
61
|
.addStorageBuffer("alive_out", WebGPUArray.u32, true)
|
|
57
62
|
.addStorageBuffer("dead", WebGPUArray.u32, true)
|
|
58
|
-
.addStorageBuffer("counters", WebGPUArray.from(atomic_u32), true));
|
|
63
|
+
.addStorageBuffer("counters", WebGPUArray.from(atomic_u32), true)));
|
|
59
64
|
|
|
60
65
|
/**
|
|
61
66
|
* The entry point both register backings share, as WGSL text: the wide variant prepends its
|
|
@@ -104,6 +109,7 @@ fn main(@builtin(global_invocation_id) gid : vec3<u32>) {
|
|
|
104
109
|
chunk_particle_warmup_step,
|
|
105
110
|
chunk_particle_vm_registers_fast,
|
|
106
111
|
chunk_particle_vm_wind_field,
|
|
112
|
+
chunk_particle_vm_scene_sdf,
|
|
107
113
|
chunk_slot_stack,
|
|
108
114
|
]),
|
|
109
115
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shader_particle_warmup_advance_wide.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/warmup/shader_particle_warmup_advance_wide.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shader_particle_warmup_advance_wide.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/warmup/shader_particle_warmup_advance_wide.js"],"names":[],"mappings":"AAsDA,gEAqBG;8BAvE2B,+BAA+B"}
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
} from "../ParticleConstants.js";
|
|
13
13
|
import { chunk_particle_vm_registers_wide } from "../vm/chunk_particle_vm_registers_wide.js";
|
|
14
14
|
import { chunk_particle_vm_wind_field } from "../vm/chunk_particle_vm_wind_field.js";
|
|
15
|
+
import { chunk_particle_vm_scene_sdf, particle_vm_scene_sdf_add_resources } from "../vm/chunk_particle_vm_scene_sdf.js";
|
|
15
16
|
import { wind_field_add_resources } from "../../wind/wind_field_add_resources.js";
|
|
16
17
|
import { chunk_particle_warmup_step } from "./chunk_particle_warmup_step.js";
|
|
17
18
|
import { chunk_slot_stack } from "../../gpu_primitive/slot_stack/chunk_slot_stack.js";
|
|
@@ -40,7 +41,7 @@ const resources = new ShaderResourceSetDescriptor();
|
|
|
40
41
|
|
|
41
42
|
resources.setImmediate("settings", WARMUP_ADVANCE_SETTINGS);
|
|
42
43
|
|
|
43
|
-
wind_field_add_resources(resources.createGroup()
|
|
44
|
+
particle_vm_scene_sdf_add_resources(wind_field_add_resources(resources.createGroup()
|
|
44
45
|
.addStorageBuffer("scene_database", WebGPUBufferType.unsized, false)
|
|
45
46
|
.addStorageBuffer("emitter_database", WebGPUBufferType.unsized, false)
|
|
46
47
|
.addStorageBuffer("program", WebGPUBufferType.unsized, false)
|
|
@@ -49,7 +50,7 @@ wind_field_add_resources(resources.createGroup()
|
|
|
49
50
|
.addStorageBuffer("alive_out", WebGPUArray.u32, true)
|
|
50
51
|
.addStorageBuffer("dead", WebGPUArray.u32, true)
|
|
51
52
|
.addStorageBuffer("counters", WebGPUArray.from(atomic_u32), true)
|
|
52
|
-
.addStorageBuffer("vm_registers", WebGPUArray.from(f32), true));
|
|
53
|
+
.addStorageBuffer("vm_registers", WebGPUArray.from(f32), true)));
|
|
53
54
|
|
|
54
55
|
export const shader_particle_warmup_advance_wide = ComputeShader.from({
|
|
55
56
|
label: "Particle Warm-up Advance (wide registers)",
|
|
@@ -69,6 +70,7 @@ fn main(@builtin(global_invocation_id) gid : vec3<u32>) {
|
|
|
69
70
|
chunk_particle_warmup_step,
|
|
70
71
|
chunk_particle_vm_registers_wide,
|
|
71
72
|
chunk_particle_vm_wind_field,
|
|
73
|
+
chunk_particle_vm_scene_sdf,
|
|
72
74
|
chunk_slot_stack,
|
|
73
75
|
]),
|
|
74
76
|
});
|
|
@@ -51,7 +51,7 @@ export class NSS {
|
|
|
51
51
|
* @returns {number}
|
|
52
52
|
*/
|
|
53
53
|
static recommended_jitter_sequence_size(upscale_ratio: number): number;
|
|
54
|
-
static "__#
|
|
54
|
+
static "__#223@#preprocess_tensor_descriptor"(render_w: any, render_h: any): TextureResourceDescriptor;
|
|
55
55
|
/**
|
|
56
56
|
* @param {GraphicsContext} graphics
|
|
57
57
|
*/
|
|
@@ -22,10 +22,13 @@ export function enquire_per_object_velocity_pipelines(enquiry: PipelineEnquiry):
|
|
|
22
22
|
* reconstruct world, find the triangle's 3 vertices in
|
|
23
23
|
* mesh-local space (from the clone's current-frame positions),
|
|
24
24
|
* compute world-space barycentric, interpolate the 3 vertices'
|
|
25
|
-
* `prev_position`
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
25
|
+
* `prev_position` values, transform via `node.global`, project
|
|
26
|
+
* with previous camera. The previous positions are kept in the
|
|
27
|
+
* mesh node's space of the current frame (see
|
|
28
|
+
* `shader_meshlet_apply_skinning`), so the current `global`
|
|
29
|
+
* takes them to where the vertices stood in the world a frame
|
|
30
|
+
* ago: the joints carry the whole motion, per-vertex skin
|
|
31
|
+
* deformation and any motion of the node they ride alike.
|
|
29
32
|
*
|
|
30
33
|
* The skinned and rigid foreground branches both produce the
|
|
31
34
|
* velocity buffer's texel (`VELOCITY_FORMAT`: pixel deltas and the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_add_per_object_velocity.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/velocity/graph_add_per_object_velocity.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph_add_per_object_velocity.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/velocity/graph_add_per_object_velocity.js"],"names":[],"mappings":"AAsRA;;;;GAIG;AACH,+DAFW,eAAe,QAIzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH;IAhB4B,KAAK;IACT,aAAa,EAA1B,MAAM;IACO,kBAAkB,EAA/B,MAAM;IACO,uBAAuB,EAApC,MAAM;IACO,qBAAqB,EAAlC,MAAM;IACO,uBAAuB,EAApC,MAAM;IACO,mBAAmB,EAAhC,MAAM;IACO,4BAA4B,EAAzC,MAAM;IACO,qBAAqB,EAAlC,MAAM;IACQ,eAAe,EAA7B,OAAO;IAGQ,UAAU,EAAzB,MAAM,EAAE;IACa,IAAI;IACvB,MAAM,CA+DlB;8BAxWY,OAAO,6CAA6C,EAAE,eAAe"}
|
|
@@ -74,8 +74,9 @@ resources.createGroup()
|
|
|
74
74
|
// `0xFFFFFFFF` for non-clone meshlets — those pixels fall back
|
|
75
75
|
// to the rigid per-object math.
|
|
76
76
|
.addStorageBuffer("prev_position_offsets", WebGPUArray.from(u32))
|
|
77
|
-
//
|
|
78
|
-
// packed 3 × f32 (bit-pattern
|
|
77
|
+
// Where clone meshlet vertices stood a frame ago, in the mesh
|
|
78
|
+
// node's space of the current frame, packed 3 × f32 (bit-pattern
|
|
79
|
+
// as u32) per vertex.
|
|
79
80
|
.addStorageBuffer("prev_positions", WebGPUArray.from(u32));
|
|
80
81
|
|
|
81
82
|
const body = CodeChunk.from(
|
|
@@ -176,14 +177,15 @@ fn main(
|
|
|
176
177
|
// - clone meshlet_data[position] : current-frame
|
|
177
178
|
// mesh-local position (written by the skinning
|
|
178
179
|
// compute pass using this frame's skin_matrices).
|
|
179
|
-
// - prev_positions[base + i*3] :
|
|
180
|
-
// mesh
|
|
181
|
-
// skin_matrices via the
|
|
180
|
+
// - prev_positions[base + i*3] : where the vertex stood
|
|
181
|
+
// a frame ago, in the mesh node's space of THIS frame
|
|
182
|
+
// (written using last frame's skin_matrices via the
|
|
183
|
+
// ping-pong, under this frame's inverse(node.global)).
|
|
182
184
|
//
|
|
183
185
|
// World barycentric on the triangle's current-frame
|
|
184
186
|
// world positions lets us reconstruct the same point's
|
|
185
187
|
// previous-frame world position by interpolating
|
|
186
|
-
// prev_positions and applying node.
|
|
188
|
+
// prev_positions and applying node.global. World-space
|
|
187
189
|
// (not screen-space) barycentric isn't perspective-correct,
|
|
188
190
|
// but the FP precision loss is negligible at typical
|
|
189
191
|
// triangle scales.
|
|
@@ -223,17 +225,22 @@ fn main(
|
|
|
223
225
|
let bary_w = (d00 * d21 - d01 * d20) / denom;
|
|
224
226
|
let bary_u = 1.0 - bary_v - bary_w;
|
|
225
227
|
|
|
226
|
-
//
|
|
227
|
-
//
|
|
228
|
-
//
|
|
228
|
+
// Where the same three vertices stood a frame ago, written
|
|
229
|
+
// by the skinning shader using last frame's
|
|
230
|
+
// prev_skin_matrices.
|
|
229
231
|
let p0_prev_local = read_prev_position(prev_pos_base, i0);
|
|
230
232
|
let p1_prev_local = read_prev_position(prev_pos_base, i1);
|
|
231
233
|
let p2_prev_local = read_prev_position(prev_pos_base, i2);
|
|
232
234
|
|
|
233
|
-
// Interpolate
|
|
234
|
-
//
|
|
235
|
+
// Interpolate, then to the world by node.global. A skinned
|
|
236
|
+
// vertex stands in the world where its joints put it,
|
|
237
|
+
// joint.global × inverse_bind × rest, wherever the mesh's
|
|
238
|
+
// node is; the skinning pass stores inverse(node.global) ×
|
|
239
|
+
// that, for both frames' skin matrices, so node.global is
|
|
240
|
+
// the one matrix that undoes it. The joints carry all of
|
|
241
|
+
// the motion, the node's own included when they ride it.
|
|
235
242
|
let p_prev_local = p0_prev_local * bary_u + p1_prev_local * bary_v + p2_prev_local * bary_w;
|
|
236
|
-
let prev_world_h = node.
|
|
243
|
+
let prev_world_h = node.global * vec4<f32>(p_prev_local, 1.0);
|
|
237
244
|
prev_world = prev_world_h.xyz / prev_world_h.w;
|
|
238
245
|
}
|
|
239
246
|
|
|
@@ -296,10 +303,13 @@ export function enquire_per_object_velocity_pipelines(enquiry) {
|
|
|
296
303
|
* reconstruct world, find the triangle's 3 vertices in
|
|
297
304
|
* mesh-local space (from the clone's current-frame positions),
|
|
298
305
|
* compute world-space barycentric, interpolate the 3 vertices'
|
|
299
|
-
* `prev_position`
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
306
|
+
* `prev_position` values, transform via `node.global`, project
|
|
307
|
+
* with previous camera. The previous positions are kept in the
|
|
308
|
+
* mesh node's space of the current frame (see
|
|
309
|
+
* `shader_meshlet_apply_skinning`), so the current `global`
|
|
310
|
+
* takes them to where the vertices stood in the world a frame
|
|
311
|
+
* ago: the joints carry the whole motion, per-vertex skin
|
|
312
|
+
* deformation and any motion of the node they ride alike.
|
|
303
313
|
*
|
|
304
314
|
* The skinned and rigid foreground branches both produce the
|
|
305
315
|
* velocity buffer's texel (`VELOCITY_FORMAT`: pixel deltas and the
|
|
@@ -47,6 +47,13 @@ export class GPUSceneContext {
|
|
|
47
47
|
*/
|
|
48
48
|
get scene(): Scene;
|
|
49
49
|
get volumetrics(): GPUSceneVolumetrics;
|
|
50
|
+
/**
|
|
51
|
+
* Which frame the context is on: one more each {@link update}, however many views render it. For a consumer
|
|
52
|
+
* whose work is the scene's once a frame rather than a view's.
|
|
53
|
+
*
|
|
54
|
+
* @returns {number}
|
|
55
|
+
*/
|
|
56
|
+
get frame(): number;
|
|
50
57
|
/**
|
|
51
58
|
* The world as rays see it: the brick clipmap around the view and the mesh fields it is built from, for
|
|
52
59
|
* whoever holds it — the probe clipmap GI and the acoustics. Built by the renderer's frame while held.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPUSceneContext.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/scene/GPUSceneContext.js"],"names":[],"mappings":"AA4EA;;;;;;;;;GASG;AACH;IAEI;;;;;;;OAOG;IACH,iCAFW,eAAe,QAUzB;
|
|
1
|
+
{"version":3,"file":"GPUSceneContext.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/scene/GPUSceneContext.js"],"names":[],"mappings":"AA4EA;;;;;;;;;GASG;AACH;IAEI;;;;;;;OAOG;IACH,iCAFW,eAAe,QAUzB;IA8LD;;;;OAIG;IACH,sBAHW,eAAe,SACf,KAAK,EAyCf;IAxOD;;;OAGG;IACH,aAFU,MAAM,CAEE;IAElB;;OAEG;IACH,YAFU,kBAAkB,CAEjB;IAEX;;OAEG;IACH,WAFU,kBAAkB,CAElB;IAGV;;OAEG;IACH,sBAFU,cAAc,CAEH;IASrB;;;OAGG;IACH,mBAEC;IAOD,uCAEC;IAaD;;;;;OAKG;IACH,oBAEC;IAOD;;;;;OAKG;IACH,0CAEC;IAED;;;;;OAKG;IACH,yBAEC;IAUD;;;;;OAKG;IACH,kBAEC;IAQD;;;OAGG;IACH,iCAEC;IAOD;;;OAGG;IACH,8CAEC;IA2ID;;OAEG;IACH,kDAEC;IAED;;OAEG;IACH,gDAEC;IAED;;OAEG;IACH,kDAEC;IAED;;OAEG;IACH,+FAEC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH;QAH0C,SAAS,GAAxC,oBAAoB;QAClB,yBAAyB,CAkErC;IAED;;OAEG;IACH,6CAEC;IAYD;;;;;OAKG;IACH,gEAEC;IAED;;;OAGG;IACH,kCAEC;IAED;;;;;OAKG;IACH,uCAEC;IAED;;;;;;;;;;;OAWG;IACH,uCAUC;IAED,+BASC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,yBAEC;IAED;;;;;OAKG;IACH,sCAMC;IAOD;;;;;;;OAOG;IACH,8EAEC;IA6BD;;;;;OAKG;IACH,cAsEC;IAED;;;;;OAKG;IACH,YAFW,eAAe,QA6BzB;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,cAHW,sBAAsB,cACtB,MAAM,QAuBhB;IAUD;;;;;;;;;;;OAWG;IACH,oBAHW,UAAU,GACR,MAAM,CAQlB;IAoCD;;;;;;;OAOG;IACH,gBAyBC;IAwCL;;;OAGG;IACH,4BAFU,OAAO,CAE0B;;CAN1C;8BAj5BY,OAAO,0CAA0C,EAAE,eAAe;8BAClE,OAAO,uBAAuB,EAAE,eAAe;iCAC/C,OAAO,mCAAmC,EAAE,kBAAkB;0BAC9D,OAAO,0CAA0C,EAAE,WAAW;iCAC9D,OAAO,mCAAmC,EAAE,kBAAkB;4BAC9D,OAAO,8BAA8B,EAAE,aAAa;8BACpD,OAAO,iDAAiD,EAAE,eAAe;yBACzE,OAAO,2DAA2D,EAAE,UAAU;+BA7B5D,iDAAiD;sBAM1D,YAAY;oCAFE,uCAAuC;qCAHtC,oEAAoE;6BAI5E,yBAAyB;uBAH/B,yBAAyB;mCACb,gCAAgC;kDAIjB,wCAAwC;0CAjBhD,0DAA0D;8BAItE,8CAA8C;iCAF3C,iDAAiD;qCAG7C,qDAAqD;oCAGtD,qCAAqC;4BAC7C,gCAAgC;uCASrB,iDAAiD;6BAQ3D,wBAAwB;wCADb,mCAAmC;uCAlBpC,wCAAwC"}
|