@woosh/meep-engine 3.77.0 → 3.78.1
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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/package.json +3 -2
- package/src/engine/EngineHarness.d.ts +4 -6
- package/src/engine/EngineHarness.d.ts.map +1 -1
- package/src/engine/EngineHarness.js +11 -19
- package/src/engine/graphics3/GraphicsEngine.d.ts +19 -1
- package/src/engine/graphics3/GraphicsEngine.d.ts.map +1 -1
- package/src/engine/graphics3/GraphicsEngine.js +24 -2
- package/src/engine/physics/cloth/solver/cloth_step.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/cloth_step.js +4 -1
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts +36 -2
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.js +60 -3
- package/src/engine/sound/sopra/runtime/EventInstance.d.ts +0 -1
- package/src/engine/sound/sopra/runtime/EventInstance.d.ts.map +1 -1
- package/src/engine/sound/sopra/runtime/EventInstance.js +0 -1
- package/src/shade/device/pipeline/ComputePipelineManager.d.ts +8 -0
- package/src/shade/device/pipeline/ComputePipelineManager.d.ts.map +1 -1
- package/src/shade/device/pipeline/ComputePipelineManager.js +18 -0
- package/src/shade/device/pipeline/RenderPipelineManager.d.ts +8 -0
- package/src/shade/device/pipeline/RenderPipelineManager.d.ts.map +1 -1
- package/src/shade/device/pipeline/RenderPipelineManager.js +17 -0
- package/src/shade/playground/avboit_footprint/index.html +20 -0
- package/src/shade/playground/avboit_footprint/main.d.ts +2 -0
- package/src/shade/playground/avboit_footprint/main.d.ts.map +1 -0
- package/src/shade/playground/avboit_footprint/main.js +428 -0
- package/src/shade/playground/probe_clipmap/main.d.ts.map +1 -1
- package/src/shade/playground/probe_clipmap/main.js +7 -3
- package/src/shade/playground/screen_probes/main.d.ts.map +1 -1
- package/src/shade/playground/screen_probes/main.js +7 -3
- package/src/shade/renderer/Renderer.d.ts +18 -8
- package/src/shade/renderer/Renderer.d.ts.map +1 -1
- package/src/shade/renderer/Renderer.js +201 -16
- package/src/shade/renderer/RendererConfiguration.d.ts +95 -0
- package/src/shade/renderer/RendererConfiguration.d.ts.map +1 -0
- package/src/shade/renderer/RendererConfiguration.js +119 -0
- package/src/shade/renderer/extension/ShadowAtlas.d.ts +4 -2
- package/src/shade/renderer/extension/ShadowAtlas.d.ts.map +1 -1
- package/src/shade/renderer/extension/ShadowAtlas.js +4 -2
- package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.d.ts +8 -0
- package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.js +34 -0
- package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.d.ts +7 -0
- package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.js +15 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +10 -2
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.js +37 -3
- package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts +6 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js +31 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.d.ts +7 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.js +20 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts +8 -0
- 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 +14 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.d.ts +7 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.js +13 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.d.ts +6 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.js +9 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.d.ts +11 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.js +71 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.d.ts +6 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.js +9 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.d.ts +6 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.js +9 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.d.ts +6 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.js +13 -0
- package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts +9 -0
- package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js +47 -0
- package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts +6 -0
- package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js +17 -0
- package/src/shade/renderer/hair/hair_shadow_draw.d.ts +2 -2
- package/src/shade/renderer/hair/hair_shadow_draw.js +2 -2
- 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 +20 -1
- package/src/shade/renderer/particles/bounds/graph_particle_bounds.d.ts +6 -0
- package/src/shade/renderer/particles/bounds/graph_particle_bounds.d.ts.map +1 -1
- package/src/shade/renderer/particles/bounds/graph_particle_bounds.js +11 -1
- package/src/shade/renderer/particles/coherence/graph_particle_bucket.d.ts +6 -0
- package/src/shade/renderer/particles/coherence/graph_particle_bucket.d.ts.map +1 -1
- package/src/shade/renderer/particles/coherence/graph_particle_bucket.js +15 -0
- package/src/shade/renderer/particles/graph_particles.d.ts +8 -0
- package/src/shade/renderer/particles/graph_particles.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph_particles.js +28 -3
- package/src/shade/renderer/particles/graph_particles_avboit.d.ts +7 -0
- package/src/shade/renderer/particles/graph_particles_avboit.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph_particles_avboit.js +14 -0
- package/src/shade/renderer/particles/shaders/shader_particle_avboit_draw.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_avboit_draw.js +5 -7
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts +7 -0
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts.map +1 -1
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.js +15 -0
- package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.d.ts +6 -0
- package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.d.ts.map +1 -1
- package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.js +16 -2
- package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.d.ts +6 -0
- package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.d.ts.map +1 -1
- package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.js +9 -0
- package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.d.ts +11 -0
- package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.d.ts.map +1 -1
- package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.js +10 -0
- package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts +6 -0
- package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.js +10 -1
- package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts +7 -0
- package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.js +21 -0
- package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.d.ts +7 -0
- package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.js +11 -1
- package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.d.ts +9 -0
- package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.js +29 -0
- package/src/shade/renderer/postprocess/motion_blur/MotionBlur.d.ts +6 -0
- package/src/shade/renderer/postprocess/motion_blur/MotionBlur.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/motion_blur/MotionBlur.js +13 -1
- package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.d.ts +6 -0
- package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.js +11 -0
- package/src/shade/renderer/postprocess/nss/NSS.d.ts +9 -0
- package/src/shade/renderer/postprocess/nss/NSS.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/nss/NSS.js +33 -18
- package/src/shade/renderer/postprocess/ssr/SSR.d.ts +8 -0
- package/src/shade/renderer/postprocess/ssr/SSR.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/SSR.js +42 -2
- package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.d.ts +6 -0
- package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.js +10 -0
- package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.d.ts +6 -0
- package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.js +11 -0
- package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.d.ts +8 -0
- package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.js +27 -3
- package/src/shade/renderer/rasterize/draw/chunk_meshlet_draw_vertex.d.ts +7 -4
- package/src/shade/renderer/rasterize/draw/chunk_meshlet_draw_vertex.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/draw/chunk_meshlet_draw_vertex.js +66 -14
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.d.ts +6 -0
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.js +10 -0
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.d.ts +5 -4
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.js +5 -4
- package/src/shade/renderer/rasterize/native/avboit/AVBOIT_CONSTANTS.d.ts +3 -3
- package/src/shade/renderer/rasterize/native/avboit/AVBOIT_CONSTANTS.js +3 -3
- package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.js +5 -7
- package/src/shade/renderer/rasterize/native/avboit/avboit_unlit_draw.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/avboit_unlit_draw.js +5 -7
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.d.ts +34 -0
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.js +42 -0
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.d.ts +5 -4
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.js +8 -7
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.d.ts +2 -2
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.js +4 -5
- package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.d.ts +9 -0
- package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.js +18 -0
- package/src/shade/renderer/rasterize/native/depth/shadow_cascade_rasterization_pass_descriptor.d.ts +20 -0
- package/src/shade/renderer/rasterize/native/depth/shadow_cascade_rasterization_pass_descriptor.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/native/depth/shadow_cascade_rasterization_pass_descriptor.js +149 -0
- package/src/shade/renderer/rasterize/native/depth/shadow_rasterization_alpha_tested_pass_descriptor.d.ts +8 -0
- package/src/shade/renderer/rasterize/native/depth/shadow_rasterization_alpha_tested_pass_descriptor.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/depth/shadow_rasterization_alpha_tested_pass_descriptor.js +100 -33
- package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.d.ts +9 -0
- package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.js +15 -0
- package/src/shade/renderer/rasterize/native/rasterization_shader_resources.d.ts +11 -0
- package/src/shade/renderer/rasterize/native/rasterization_shader_resources.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/rasterization_shader_resources.js +24 -11
- package/src/shade/renderer/restir/di/ReSTIRDI.d.ts +6 -0
- package/src/shade/renderer/restir/di/ReSTIRDI.d.ts.map +1 -1
- package/src/shade/renderer/restir/di/ReSTIRDI.js +10 -1
- package/src/shade/renderer/restir/di/graph_restir_di.d.ts +9 -0
- package/src/shade/renderer/restir/di/graph_restir_di.d.ts.map +1 -1
- package/src/shade/renderer/restir/di/graph_restir_di.js +19 -1
- package/src/shade/renderer/restir/di/graph_restir_di_denoise.d.ts +6 -0
- package/src/shade/renderer/restir/di/graph_restir_di_denoise.d.ts.map +1 -1
- package/src/shade/renderer/restir/di/graph_restir_di_denoise.js +9 -0
- package/src/shade/renderer/scene/movers/graph_scene_movers.d.ts +7 -0
- package/src/shade/renderer/scene/movers/graph_scene_movers.d.ts.map +1 -1
- package/src/shade/renderer/scene/movers/graph_scene_movers.js +11 -0
- package/src/shade/renderer/shader/chunk/geometry/meshlet/chunk_read_meshlet_vertex_normal.d.ts +13 -0
- package/src/shade/renderer/shader/chunk/geometry/meshlet/chunk_read_meshlet_vertex_normal.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/geometry/meshlet/chunk_read_meshlet_vertex_normal.js +42 -0
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts +10 -0
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +39 -6
- package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.d.ts +34 -0
- package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.js +106 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadow_cascade_caster_position.d.ts +16 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadow_cascade_caster_position.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadow_cascade_caster_position.js +50 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.d.ts +25 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.js +42 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_directional_cascades.d.ts +1 -1
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_directional_cascades.js +5 -5
- package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.d.ts +7 -0
- package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.d.ts.map +1 -1
- package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.js +14 -0
- package/src/shade/renderer/text/shaders/shader_text_avboit.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/shader_text_avboit.js +5 -7
- package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts +9 -1
- package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.js +16 -1
- package/src/shade/renderer/water/shader_water_avboit.d.ts.map +1 -1
- package/src/shade/renderer/water/shader_water_avboit.js +16 -13
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.d.ts +0 -33
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.d.ts.map +0 -1
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.js +0 -45
|
@@ -27,6 +27,15 @@ export class GPUScreenProbeGI {
|
|
|
27
27
|
* @param {GPUDevice} device
|
|
28
28
|
*/
|
|
29
29
|
constructor(device: GPUDevice);
|
|
30
|
+
/**
|
|
31
|
+
* Offer the pipelines a frame of the screen probes dispatches under `settings` — see {@link PipelineEnquiry}:
|
|
32
|
+
* their placement, rays, gather and resolve. The world they trace is the probe clipmap's to offer, the pass that
|
|
33
|
+
* lights the frame from them the renderer's, and the debug views are left to the frame that first shows one.
|
|
34
|
+
*
|
|
35
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
36
|
+
* @param {ScreenProbeSettings} settings the renderer's, as {@link graph_update} will be given them
|
|
37
|
+
*/
|
|
38
|
+
enquirePipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry, settings: ScreenProbeSettings): void;
|
|
30
39
|
/**
|
|
31
40
|
* Drop the history: the next frame takes nothing from the frames before it, as a first frame does. For a cut, or a
|
|
32
41
|
* change of scene or lighting the temporal filters must not blend across (`Renderer#indicate_view_change`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPUScreenProbeGI.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js"],"names":[],"mappings":"AAqEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;
|
|
1
|
+
{"version":3,"file":"GPUScreenProbeGI.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js"],"names":[],"mappings":"AAqEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;IA4KI;;OAEG;IACH,+BAIC;IA/KD;;;;;;;OAOG;IACH,0BAHW,OAAO,6CAA6C,EAAE,eAAe,YACrE,mBAAmB,QAuC7B;IAoID;;;OAGG;IACH,sBAEC;IAED;;OAEG;IACH,qBAEC;IAED;;OAEG;IACH,4BAEC;IAED;;OAEG;IACH,gCAEC;IAiBD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH;QAf+B,KAAK,EAAzB,UAAU;QACc,IAAI,EAA5B,cAAc;QACe,QAAQ,EAArC,mBAAmB;QACQ,KAAK,EAAhC,iBAAiB;QAEN,IAAI;QACC,KAAK,EAArB,MAAM;QACU,MAAM,EAAtB,MAAM;QACU,GAAG,EAAnB,MAAM;QACU,QAAQ,EAAxB,MAAM;QACU,SAAS,EAAzB,MAAM;QACU,GAAG,EAAnB,MAAM;QACU,QAAQ,EAAxB,MAAM;aAoFhB;IAED;;;;;;;;;;;;;;;OAeG;IACH;QAX+B,KAAK,EAAzB,UAAU;QACM,KAAK,EAArB,MAAM;QACU,cAAc,EAA9B,MAAM;QACU,MAAM,EAAtB,MAAM;QACU,GAAG,EAAnB,MAAM;QACU,QAAQ,EAAxB,MAAM;QACU,YAAY,EAA5B,MAAM;QACU,QAAQ,EAAxB,MAAM;QAEJ,MAAM,CAyBlB;IAED;;;;OAIG;IACH,8BAEC;IAED;;OAEG;IACH,6BAEC;IAED;;;;;;OAMG;IACH,yCASC;IAED;;;;;;;OAOG;IACH;QAH+B,KAAK,EAAzB,UAAU;QACM,KAAK,EAArB,MAAM;aAWhB;IAqcD;;;OAGG;IACH,gBAiCC;IAED,gBAQC;;CACJ;yBA97BY,OAAO,8DAA8D,EAAE,UAAU;6BACjF,OAAO,8BAA8B,EAAE,cAAc;kCACrD,OAAO,0BAA0B,EAAE,mBAAmB;gCACtD,OAAO,uCAAuC,EAAE,iBAAiB"}
|
|
@@ -95,6 +95,53 @@ export class GPUScreenProbeGI {
|
|
|
95
95
|
/** @type {GPUDevice} */
|
|
96
96
|
#device;
|
|
97
97
|
|
|
98
|
+
/**
|
|
99
|
+
* Offer the pipelines a frame of the screen probes dispatches under `settings` — see {@link PipelineEnquiry}:
|
|
100
|
+
* their placement, rays, gather and resolve. The world they trace is the probe clipmap's to offer, the pass that
|
|
101
|
+
* lights the frame from them the renderer's, and the debug views are left to the frame that first shows one.
|
|
102
|
+
*
|
|
103
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
104
|
+
* @param {ScreenProbeSettings} settings the renderer's, as {@link graph_update} will be given them
|
|
105
|
+
*/
|
|
106
|
+
enquirePipelines(enquiry, settings) {
|
|
107
|
+
assert.defined(settings, 'settings');
|
|
108
|
+
|
|
109
|
+
const compute = enquiry.compute;
|
|
110
|
+
|
|
111
|
+
compute.push(shader_screen_probe_place_uniform.pipeline);
|
|
112
|
+
|
|
113
|
+
if (screen_probe_adaptive_levels(settings.downsample_factor, settings.adaptive_min_downsample_factor) > 0) {
|
|
114
|
+
compute.push(shader_screen_probe_place_adaptive.pipeline);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
compute.push(shader_screen_probe_command.pipeline);
|
|
118
|
+
compute.push(shader_screen_probe_pick.pipeline);
|
|
119
|
+
compute.push(shader_screen_probe_brdf_pdf.pipeline);
|
|
120
|
+
|
|
121
|
+
if (settings.importance_sampling) {
|
|
122
|
+
compute.push(shader_screen_probe_lighting_pdf.pipeline);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
compute.push(shader_screen_probe_generate_rays.pipeline);
|
|
126
|
+
compute.push(shader_screen_probe_trace_screen.pipeline);
|
|
127
|
+
compute.push(shader_screen_probe_brick_command.pipeline);
|
|
128
|
+
compute.push(shader_screen_probe_brick_trace.pipeline);
|
|
129
|
+
compute.push(shader_screen_probe_brick_shade.pipeline);
|
|
130
|
+
compute.push(shader_screen_probe_brick_light.pipeline);
|
|
131
|
+
compute.push(shader_screen_probe_brick_bounce.pipeline);
|
|
132
|
+
compute.push(shader_screen_probe_brick_want.pipeline);
|
|
133
|
+
compute.push(shader_screen_probe_composite.pipeline);
|
|
134
|
+
|
|
135
|
+
if (settings.spatial_filter_passes > 0) {
|
|
136
|
+
compute.push(shader_screen_probe_filter.pipeline);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
compute.push(shader_screen_probe_irradiance.pipeline);
|
|
140
|
+
compute.push(shader_screen_probe_integrate.pipeline);
|
|
141
|
+
compute.push(shader_screen_probe_temporal.pipeline);
|
|
142
|
+
compute.push(shader_screen_probe_color_capture.pipeline);
|
|
143
|
+
}
|
|
144
|
+
|
|
98
145
|
#destroyed = false;
|
|
99
146
|
|
|
100
147
|
/** The structure the resources were made for. */
|
|
@@ -117,6 +117,12 @@ export class ScreenProbeSettings {
|
|
|
117
117
|
* @returns {ScreenProbeDebugView}
|
|
118
118
|
*/
|
|
119
119
|
get debug_view(): number;
|
|
120
|
+
/**
|
|
121
|
+
* Take every field's value from `other`, which is left as it was. The two share nothing afterwards.
|
|
122
|
+
*
|
|
123
|
+
* @param {ScreenProbeSettings} other
|
|
124
|
+
*/
|
|
125
|
+
copy(other: ScreenProbeSettings): void;
|
|
120
126
|
#private;
|
|
121
127
|
}
|
|
122
128
|
//# sourceMappingURL=ScreenProbeSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenProbeSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH;IAgBI;;OAEG;IACH,iCAKC;IApBD;;;;;;;OAOG;IACH,gCAEC;IAyBD;;;OAGG;IACH,qCAKC;IApBD;;;;;;OAMG;IACH,oCAEC;IA0BD;;OAEG;IACH,8CAKC;IAnBD;;;;;;OAMG;IACH,6CAEC;IAyBD;;OAEG;IACH,oCAIC;IAlBD;;;;;;OAMG;IACH,mCAEC;IAuBD;;OAEG;IACH,8BAIC;IAjBD;;;;;OAKG;IACH,6BAEC;IAwBD;;OAEG;IACH,+BAIC;IAlBD;;;;;;OAMG;IACH,8BAEC;IAuBD;;OAEG;IACH,qCAIC;IAjBD;;;;;OAKG;IACH,oCAEC;IAuBD;;OAEG;IACH,+BAKC;IAlBD;;;;;OAKG;IACH,8BAEC;IAuBD;;OAEG;IACH,0BAIC;IAhBD;;;;OAIG;IACH,yBAEC;;
|
|
1
|
+
{"version":3,"file":"ScreenProbeSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH;IAgBI;;OAEG;IACH,iCAKC;IApBD;;;;;;;OAOG;IACH,gCAEC;IAyBD;;;OAGG;IACH,qCAKC;IApBD;;;;;;OAMG;IACH,oCAEC;IA0BD;;OAEG;IACH,8CAKC;IAnBD;;;;;;OAMG;IACH,6CAEC;IAyBD;;OAEG;IACH,oCAIC;IAlBD;;;;;;OAMG;IACH,mCAEC;IAuBD;;OAEG;IACH,8BAIC;IAjBD;;;;;OAKG;IACH,6BAEC;IAwBD;;OAEG;IACH,+BAIC;IAlBD;;;;;;OAMG;IACH,8BAEC;IAuBD;;OAEG;IACH,qCAIC;IAjBD;;;;;OAKG;IACH,oCAEC;IAuBD;;OAEG;IACH,+BAKC;IAlBD;;;;;OAKG;IACH,8BAEC;IAuBD;;OAEG;IACH,0BAIC;IAhBD;;;;OAIG;IACH,yBAEC;IAWD;;;;OAIG;IACH,YAFW,mBAAmB,QAY7B;;CACJ"}
|
|
@@ -216,4 +216,21 @@ export class ScreenProbeSettings {
|
|
|
216
216
|
|
|
217
217
|
this.#debug_view = v;
|
|
218
218
|
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Take every field's value from `other`, which is left as it was. The two share nothing afterwards.
|
|
222
|
+
*
|
|
223
|
+
* @param {ScreenProbeSettings} other
|
|
224
|
+
*/
|
|
225
|
+
copy(other) {
|
|
226
|
+
this.#downsample_factor = other.downsample_factor;
|
|
227
|
+
this.#octahedron_resolution = other.octahedron_resolution;
|
|
228
|
+
this.#adaptive_min_downsample_factor = other.adaptive_min_downsample_factor;
|
|
229
|
+
this.#importance_sampling = other.importance_sampling;
|
|
230
|
+
this.#screen_traces = other.screen_traces;
|
|
231
|
+
this.#rough_specular = other.rough_specular;
|
|
232
|
+
this.#spatial_filter_passes = other.spatial_filter_passes;
|
|
233
|
+
this.#temporal_frames = other.temporal_frames;
|
|
234
|
+
this.#debug_view = other.debug_view;
|
|
235
|
+
}
|
|
219
236
|
}
|
|
@@ -11,8 +11,8 @@ export const HAIR_SHADOW_TARGET_STRUCT: WebGPUStruct;
|
|
|
11
11
|
*/
|
|
12
12
|
export const HAIR_SHADOW_RESOURCES: ShaderResourceSetDescriptor;
|
|
13
13
|
/**
|
|
14
|
-
* Draws the frame's strands into a shadow view's depth
|
|
15
|
-
*
|
|
14
|
+
* Draws the frame's strands into a shadow view's depth with the rasterizer's bias (`DEPTH_STENCIL_STATE_SHADOW`), in
|
|
15
|
+
* cascades as well: a strand has no surface normal for the cascade casters' vertex-stage push to read.
|
|
16
16
|
*
|
|
17
17
|
* An instance is an entry of the view's list (`shader_hair_shadow_list`), a strand, drawn as `hair_id_draw.js` draws
|
|
18
18
|
* it for the eye: a triangle strip a pair of vertices at each of its points, `2 (2^class + 1)` vertices, one draw a
|
|
@@ -100,8 +100,8 @@ const descriptor = ShaderDescriptor.from({ label: "Hair Shadow", body, resources
|
|
|
100
100
|
export const HAIR_SHADOW_RESOURCES = resources;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* Draws the frame's strands into a shadow view's depth
|
|
104
|
-
*
|
|
103
|
+
* Draws the frame's strands into a shadow view's depth with the rasterizer's bias (`DEPTH_STENCIL_STATE_SHADOW`), in
|
|
104
|
+
* cascades as well: a strand has no surface normal for the cascade casters' vertex-stage push to read.
|
|
105
105
|
*
|
|
106
106
|
* An instance is an entry of the view's list (`shader_hair_shadow_list`), a strand, drawn as `hair_id_draw.js` draws
|
|
107
107
|
* it for the eye: a triangle strip a pair of vertices at each of its points, `2 (2^class + 1)` vertices, one draw a
|
|
@@ -119,6 +119,14 @@
|
|
|
119
119
|
* something to upload.
|
|
120
120
|
*/
|
|
121
121
|
export class GPUParticleSystem {
|
|
122
|
+
/**
|
|
123
|
+
* Offer the pipelines a scene's particles are simulated and drawn with — see {@link PipelineEnquiry}: the
|
|
124
|
+
* simulation, the lists' upkeep as the pool grows and shrinks, and the three passes it adds to the AVBOIT
|
|
125
|
+
* transparency pipeline. The same for every program: an effect brings bytecode, not a pipeline.
|
|
126
|
+
*
|
|
127
|
+
* @param {import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
128
|
+
*/
|
|
129
|
+
static enquirePipelines(enquiry: import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
122
130
|
/**
|
|
123
131
|
* @param {object} graphics engine GraphicsContext (has `.device`)
|
|
124
132
|
* @param {import("../scene/GPUSceneContext.js").GPUSceneContext} scene_context
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPUParticleSystem.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/particles/GPUParticleSystem.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GPUParticleSystem.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/particles/GPUParticleSystem.js"],"names":[],"mappings":"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"}
|
|
@@ -19,13 +19,14 @@ import {
|
|
|
19
19
|
particle_bounds_empty_words,
|
|
20
20
|
particle_counters_word_count,
|
|
21
21
|
} from "./data/PARTICLE_COUNTERS.js";
|
|
22
|
-
import { graph_particles_simulate } from "./graph_particles.js";
|
|
22
|
+
import { enquire_particles_simulate_pipelines, graph_particles_simulate } from "./graph_particles.js";
|
|
23
23
|
import { PARTICLE_FIELD_BIND_WORKGROUP_SIZE } from "./shaders/shader_particle_field_bind.js";
|
|
24
24
|
import {
|
|
25
25
|
SLOT_STACK_FILL_WORKGROUP_SIZE,
|
|
26
26
|
shader_slot_stack_fill,
|
|
27
27
|
} from "../gpu_primitive/slot_stack/shader_slot_stack_fill.js";
|
|
28
28
|
import {
|
|
29
|
+
enquire_particle_avboit_pipelines,
|
|
29
30
|
graph_particle_avboit_draw,
|
|
30
31
|
graph_particle_avboit_occupancy,
|
|
31
32
|
graph_particle_avboit_splat,
|
|
@@ -193,6 +194,24 @@ const DEFAULT_CAPACITY = 65536;
|
|
|
193
194
|
*/
|
|
194
195
|
export class GPUParticleSystem {
|
|
195
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Offer the pipelines a scene's particles are simulated and drawn with — see {@link PipelineEnquiry}: the
|
|
199
|
+
* simulation, the lists' upkeep as the pool grows and shrinks, and the three passes it adds to the AVBOIT
|
|
200
|
+
* transparency pipeline. The same for every program: an effect brings bytecode, not a pipeline.
|
|
201
|
+
*
|
|
202
|
+
* @param {import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
203
|
+
*/
|
|
204
|
+
static enquirePipelines(enquiry) {
|
|
205
|
+
enquiry.compute.push(shader_slot_stack_fill.pipeline);
|
|
206
|
+
enquiry.compute.push(shader_slot_stack_push_range.pipeline);
|
|
207
|
+
enquiry.compute.push(shader_particle_shrink_free_list.pipeline);
|
|
208
|
+
enquiry.compute.push(shader_particle_shrink_alive_list.pipeline);
|
|
209
|
+
enquiry.compute.push(shader_buffer_copy_storage_to_storage.pipeline);
|
|
210
|
+
|
|
211
|
+
enquire_particles_simulate_pipelines(enquiry);
|
|
212
|
+
enquire_particle_avboit_pipelines(enquiry);
|
|
213
|
+
}
|
|
214
|
+
|
|
196
215
|
/**
|
|
197
216
|
* Engine GraphicsContext.
|
|
198
217
|
* @type {object}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offer the pipelines {@link graph_particle_bounds} dispatches — see {@link PipelineEnquiry}.
|
|
3
|
+
*
|
|
4
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
5
|
+
*/
|
|
6
|
+
export function enquire_particle_bounds_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
1
7
|
/**
|
|
2
8
|
* Frame-graph wiring for the measured emitter bounds: the frame's alive list reduced to one
|
|
3
9
|
* world-space box per emitter, published where the culling and occupancy passes read it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_particle_bounds.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/bounds/graph_particle_bounds.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;GAmBG;AACH;IAVqG,KAAK,EAA/F,OAAO,8DAA8D,EAAE,UAAU;IAClE,gBAAgB,EAA/B,MAAM;IACS,IAAI,EAAnB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,QAAQ,EAAvB,MAAM;IACS,aAAa,EAA5B,MAAM;IACS,mBAAmB,EAAlC,MAAM;IAEJ;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAC,CAwCxD"}
|
|
1
|
+
{"version":3,"file":"graph_particle_bounds.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/bounds/graph_particle_bounds.js"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,2DAFW,OAAO,6CAA6C,EAAE,eAAe,QAK/E;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH;IAVqG,KAAK,EAA/F,OAAO,8DAA8D,EAAE,UAAU;IAClE,gBAAgB,EAA/B,MAAM;IACS,IAAI,EAAnB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,QAAQ,EAAvB,MAAM;IACS,aAAa,EAA5B,MAAM;IACS,mBAAmB,EAAlC,MAAM;IAEJ;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAC,CAwCxD"}
|
|
@@ -6,6 +6,16 @@ import {
|
|
|
6
6
|
shader_particle_bounds_publish,
|
|
7
7
|
} from "./shader_particle_bounds.js";
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Offer the pipelines {@link graph_particle_bounds} dispatches — see {@link PipelineEnquiry}.
|
|
11
|
+
*
|
|
12
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
13
|
+
*/
|
|
14
|
+
export function enquire_particle_bounds_pipelines(enquiry) {
|
|
15
|
+
enquiry.compute.push(shader_particle_bounds_accumulate.pipeline);
|
|
16
|
+
enquiry.compute.push(shader_particle_bounds_publish.pipeline);
|
|
17
|
+
}
|
|
18
|
+
|
|
9
19
|
/**
|
|
10
20
|
* Frame-graph wiring for the measured emitter bounds: the frame's alive list reduced to one
|
|
11
21
|
* world-space box per emitter, published where the culling and occupancy passes read it.
|
|
@@ -56,7 +66,7 @@ export function graph_particle_bounds({
|
|
|
56
66
|
const published = graph_compute_pass({
|
|
57
67
|
graph,
|
|
58
68
|
shader: shader_particle_bounds_publish,
|
|
59
|
-
bindings: { emitter_database, counters: accumulated.counters },
|
|
69
|
+
bindings: { emitter_database, counters: accumulated.counters },
|
|
60
70
|
group_count: [emitter_group_count, 1, 1],
|
|
61
71
|
});
|
|
62
72
|
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offer the pipelines {@link graph_particle_bucket} dispatches — see {@link PipelineEnquiry}.
|
|
3
|
+
*
|
|
4
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
5
|
+
*/
|
|
6
|
+
export function enquire_particle_bucket_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
1
7
|
/**
|
|
2
8
|
* @typedef {{keys: number, histogram: number, scanned: number, cursor: number, bucket_counts: number, dispatch_args: number}} ParticleBucketScratch
|
|
3
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_particle_bucket.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/coherence/graph_particle_bucket.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph_particle_bucket.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/coherence/graph_particle_bucket.js"],"names":[],"mappings":"AAyBA;;;;GAIG;AACH,2DAFW,OAAO,6CAA6C,EAAE,eAAe,QAS/E;AAED;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH;IAdqG,KAAK,EAA/F,OAAO,8DAA8D,EAAE,UAAU;IAClE,gBAAgB,EAA/B,MAAM;IACS,IAAI,EAAnB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,QAAQ,EAAvB,MAAM;IACS,QAAQ,EAAvB,MAAM;IAIS,QAAQ,EAAvB,MAAM;IACS,YAAY,EAA3B,MAAM;IACyB,OAAO,GAAtC,qBAAqB;IACnB;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,qBAAqB,CAAA;CAAC,CA8GvG;oCAhKY;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAC"}
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
PREFIX_SCAN_CSDLDF_HEADER_WORDS,
|
|
8
8
|
} from "../../gpu_primitive/prefix_sum/v1/shader_prefix_scan_csdldf.js";
|
|
9
9
|
import {
|
|
10
|
+
enquire_prefix_scan_csdldf_pipelines,
|
|
10
11
|
graph_prefix_scan_csdldf,
|
|
11
12
|
prefix_scan_csdldf_output_descriptor
|
|
12
13
|
} from "../../gpu_primitive/prefix_sum/v1/graph_prefix_scan_csdldf.js";
|
|
@@ -22,6 +23,20 @@ import {
|
|
|
22
23
|
|
|
23
24
|
const WORD = Uint32Array.BYTES_PER_ELEMENT;
|
|
24
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Offer the pipelines {@link graph_particle_bucket} dispatches — see {@link PipelineEnquiry}.
|
|
28
|
+
*
|
|
29
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
30
|
+
*/
|
|
31
|
+
export function enquire_particle_bucket_pipelines(enquiry) {
|
|
32
|
+
enquiry.compute.push(shader_particle_bucket_reset.pipeline);
|
|
33
|
+
enquiry.compute.push(shader_particle_bucket_histogram.pipeline);
|
|
34
|
+
enquire_prefix_scan_csdldf_pipelines(enquiry);
|
|
35
|
+
enquiry.compute.push(shader_particle_bucket_pad.pipeline);
|
|
36
|
+
enquiry.compute.push(shader_particle_bucket_scatter.pipeline);
|
|
37
|
+
enquiry.compute.push(shader_particle_bucket_fill.pipeline);
|
|
38
|
+
}
|
|
39
|
+
|
|
25
40
|
/**
|
|
26
41
|
* @typedef {{keys: number, histogram: number, scanned: number, cursor: number, bucket_counts: number, dispatch_args: number}} ParticleBucketScratch
|
|
27
42
|
*/
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offer the pipelines {@link graph_particles_simulate} dispatches — see {@link PipelineEnquiry}: a frame's emitter
|
|
3
|
+
* tick, emission and simulation at either register width, the coherence pass, the measured bounds, and the warm-up
|
|
4
|
+
* of emitters that start ahead.
|
|
5
|
+
*
|
|
6
|
+
* @param {import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
7
|
+
*/
|
|
8
|
+
export function enquire_particles_simulate_pipelines(enquiry: import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
1
9
|
/**
|
|
2
10
|
* The simulation half of the particle system's frame, recorded into the frame graph.
|
|
3
11
|
* {@link GPUParticleSystem#execute} is what calls it, with the buffers it owns; nothing else needs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_particles.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/particles/graph_particles.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph_particles.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/particles/graph_particles.js"],"names":[],"mappings":"AA4CA;;;;;;GAMG;AACH,8DAFW,OAAO,0CAA0C,EAAE,eAAe,QAiB5E;AAQD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH;IAtCkG,KAAK,EAA5F,OAAO,2DAA2D,EAAE,UAAU;IAC/D,MAAM,EAArB,MAAM;IACS,cAAc,EAA7B,MAAM;IACiD,IAAI,EAA3D,OAAO,yBAAyB,EAAE,YAAY;IAE4D,SAAS,EAAnH,OAAO,oEAAoE,EAAE,oBAAoB;IAGlF,GAAG,EAAlB,MAAM;IAGS,QAAQ;QACC,QAAQ,EAAhC,MAAM;QAEkB,WAAW,EAAnC,MAAM;;IACS,QAAQ,EAAvB,MAAM;IACS,YAAY,EAA3B,MAAM;IAEU,cAAc,EAA9B,OAAO;IAGQ,KAAK;QACC,EAAE,EAAvB,MAAM;QACe,IAAI,EAAzB,MAAM;QACe,KAAK,EAA1B,MAAM;QACiB,QAAQ,GAA/B,OAAO;QACc,WAAW,EAAhC,MAAM;QACe,mBAAmB,EAAxC,MAAM;QACe,YAAY,EAAjC,MAAM;QAGe,eAAe,EAApC,MAAM;QAC6D,eAAe,EAAlF,OAAO,6BAA6B,EAAE,cAAc;;IAErB,cAAc,GAA7C;QAAC,WAAW,EAAE,MAAM,CAAA;KAAC;IAEnB,yBAAyB,CAsWrC;;;;;UArZa,MAAM;;;;WACN,MAAM;;;;eACN,MAAM;;;;;sBACN,MAAM"}
|
|
@@ -3,12 +3,13 @@ import { align_4 } from "../../../core/binary/align_4.js";
|
|
|
3
3
|
import { BufferResourceDescriptor } from "../../device/graph/BufferResourceDescriptor.js";
|
|
4
4
|
import { INDIRECT_COMPUTE_COMMAND_DESCRIPTOR } from "../gpu_primitive/indirect/IndirectComputeCommandBuildPass.js";
|
|
5
5
|
import {
|
|
6
|
+
enquire_prefix_scan_csdldf_pipelines,
|
|
6
7
|
graph_prefix_scan_csdldf,
|
|
7
8
|
prefix_scan_csdldf_output_descriptor
|
|
8
9
|
} from "../gpu_primitive/prefix_sum/v1/graph_prefix_scan_csdldf.js";
|
|
9
10
|
import { PREFIX_SCAN_CSDLDF_HEADER_WORDS } from "../gpu_primitive/prefix_sum/v1/shader_prefix_scan_csdldf.js";
|
|
10
11
|
import { shader_prefix_sum_to_command } from "../rasterize/expand/mesh/shader_prefix_sum_to_command.js";
|
|
11
|
-
import { graph_particle_bounds } from "./bounds/graph_particle_bounds.js";
|
|
12
|
+
import { enquire_particle_bounds_pipelines, graph_particle_bounds } from "./bounds/graph_particle_bounds.js";
|
|
12
13
|
import { graph_compute_indirect_pass } from "../shader/graph/compute/graph_compute_indirect_pass.js";
|
|
13
14
|
import { graph_compute_pass } from "../shader/graph/compute/graph_compute_pass.js";
|
|
14
15
|
import { graph_create_buffer } from "../shader/graph/graph_create_buffer.js";
|
|
@@ -18,7 +19,7 @@ import {
|
|
|
18
19
|
PARTICLE_VM_REGISTER_SLOTS,
|
|
19
20
|
PARTICLE_VM_WIDE_LAUNCH_LANES,
|
|
20
21
|
} from "./ParticleConstants.js";
|
|
21
|
-
import { graph_particle_bucket } from "./coherence/graph_particle_bucket.js";
|
|
22
|
+
import { enquire_particle_bucket_pipelines, graph_particle_bucket } from "./coherence/graph_particle_bucket.js";
|
|
22
23
|
import { shader_particle_emit } from "./shaders/shader_particle_emit.js";
|
|
23
24
|
import {
|
|
24
25
|
PARTICLE_EMIT_WIDE_WORKGROUP_COUNT,
|
|
@@ -39,7 +40,31 @@ import {
|
|
|
39
40
|
PARTICLE_SPAWN_COMMAND_WORKGROUP_SIZE,
|
|
40
41
|
shader_particle_spawn_commands,
|
|
41
42
|
} from "./shaders/shader_particle_spawn_commands.js";
|
|
42
|
-
import { graph_particle_warmup } from "./warmup/graph_particle_warmup.js";
|
|
43
|
+
import { enquire_particle_warmup_pipelines, graph_particle_warmup } from "./warmup/graph_particle_warmup.js";
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Offer the pipelines {@link graph_particles_simulate} dispatches — see {@link PipelineEnquiry}: a frame's emitter
|
|
47
|
+
* tick, emission and simulation at either register width, the coherence pass, the measured bounds, and the warm-up
|
|
48
|
+
* of emitters that start ahead.
|
|
49
|
+
*
|
|
50
|
+
* @param {import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
51
|
+
*/
|
|
52
|
+
export function enquire_particles_simulate_pipelines(enquiry) {
|
|
53
|
+
enquiry.compute.push(shader_particle_reset_counters.pipeline);
|
|
54
|
+
enquiry.compute.push(shader_particle_field_bind.pipeline);
|
|
55
|
+
enquiry.compute.push(shader_particle_spawn_commands.pipeline);
|
|
56
|
+
enquiry.compute.push(shader_particle_emitter_tick.pipeline);
|
|
57
|
+
enquire_prefix_scan_csdldf_pipelines(enquiry);
|
|
58
|
+
enquiry.compute.push(shader_prefix_sum_to_command.pipeline);
|
|
59
|
+
enquiry.compute.push(shader_particle_emit.pipeline);
|
|
60
|
+
enquiry.compute.push(shader_particle_emit_wide.pipeline);
|
|
61
|
+
enquiry.compute.push(shader_particle_simulate.pipeline);
|
|
62
|
+
enquiry.compute.push(shader_particle_simulate_wide.pipeline);
|
|
63
|
+
enquire_particle_warmup_pipelines(enquiry);
|
|
64
|
+
enquire_particle_bucket_pipelines(enquiry);
|
|
65
|
+
enquire_particle_bounds_pipelines(enquiry);
|
|
66
|
+
enquiry.compute.push(shader_particle_build_indirect.pipeline);
|
|
67
|
+
}
|
|
43
68
|
|
|
44
69
|
/**
|
|
45
70
|
* What {@link graph_particles_simulate} is told when nothing is bound.
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offer the pipelines the particles' three contributions to the AVBOIT transparency pipeline run with — see
|
|
3
|
+
* {@link PipelineEnquiry}.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
6
|
+
*/
|
|
7
|
+
export function enquire_particle_avboit_pipelines(enquiry: import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
1
8
|
/**
|
|
2
9
|
* Mark the depth slices the emitters' measured bounding boxes span
|
|
3
10
|
* (`shader_particle_avboit_occupancy`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_particles_avboit.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/particles/graph_particles_avboit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph_particles_avboit.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/particles/graph_particles_avboit.js"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,2DAFW,OAAO,0CAA0C,EAAE,eAAe,QAQ5E;AAuBD;;;;;;;;;;;;;;;GAeG;AACH;IARkG,KAAK,EAA5F,OAAO,2DAA2D,EAAE,UAAU;IAC/D,MAAM,EAArB,MAAM;IACoB,kBAAkB,EAA5C,UAAU,MAAM,CAAC;IACF,SAAS,EAAxB,MAAM;IACS,gBAAgB,EAA/B,MAAM;IACS,mBAAmB,EAAlC,MAAM;IACJ,MAAM,CA8ClB;AAED;;;;;;;;;;;;;;;GAeG;AACH;IAZkG,KAAK,EAA5F,OAAO,2DAA2D,EAAE,UAAU;IAC/D,MAAM,EAArB,MAAM;IACS,IAAI,EAAnB,MAAM;IACwD,MAAM,EAApE;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC;IAC9B,KAAK;IACT,aAAa;IACjB,IAAI,EAAnB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,gBAAgB,EAA/B,MAAM;IACS,SAAS,EAAxB,MAAM;IACJ;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CA0EjE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;IAnBkG,KAAK,EAA5F,OAAO,2DAA2D,EAAE,UAAU;IACnB,QAAQ,EAAnE,OAAO,2BAA2B,EAAE,cAAc;IACnC,MAAM,EAArB,MAAM;IACS,aAAa,EAA5B,MAAM;IACS,IAAI,EAAnB,MAAM;IACS,QAAQ,EAAvB,MAAM;IACS,eAAe,EAA9B,MAAM;IACS,oBAAoB,EAAnC,MAAM;IAC6C,sBAAsB,EAAzE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC;IAEkC,YAAY,EAAxF;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC;IAC5C,KAAK;IACT,aAAa;IACjB,IAAI,EAAnB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,gBAAgB,EAA/B,MAAM;IACS,SAAS,EAAxB,MAAM;IACJ;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC,CA+H/E"}
|
|
@@ -19,6 +19,20 @@ import {
|
|
|
19
19
|
PARTICLE_AVBOIT_SPLAT_RESOURCES,
|
|
20
20
|
} from "./shaders/shader_particle_avboit_splat.js";
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Offer the pipelines the particles' three contributions to the AVBOIT transparency pipeline run with — see
|
|
24
|
+
* {@link PipelineEnquiry}.
|
|
25
|
+
*
|
|
26
|
+
* @param {import("../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
27
|
+
*/
|
|
28
|
+
export function enquire_particle_avboit_pipelines(enquiry) {
|
|
29
|
+
enquiry.compute.push(shader_particle_avboit_occupancy.pipeline);
|
|
30
|
+
enquiry.render.push(PARTICLE_AVBOIT_SPLAT_PIPELINE);
|
|
31
|
+
enquiry.render.push(PARTICLE_AVBOIT_DRAW_ALPHA_PIPELINE);
|
|
32
|
+
enquiry.render.push(PARTICLE_AVBOIT_DRAW_ADDITIVE_PIPELINE);
|
|
33
|
+
enquiry.render.push(PARTICLE_AVBOIT_DRAW_GENERAL_PIPELINE);
|
|
34
|
+
}
|
|
35
|
+
|
|
22
36
|
/**
|
|
23
37
|
* The particle system's three contributions to the AVBOIT transparency pipeline — the
|
|
24
38
|
* `AVBOITSideChannel` contract, recorded into the frame graph the way the AVBOIT orchestrator
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shader_particle_avboit_draw.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/shaders/shader_particle_avboit_draw.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shader_particle_avboit_draw.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/shaders/shader_particle_avboit_draw.js"],"names":[],"mappings":"AA6LA,2EAAsI;AACtI,8EAA2I;AAC3I,6EAA8I;AAE9I,mEAAmE;AACnE,yEAAwD;AAExD,mDAAmD;AACnD,2DAAsD;yCApMb,iEAAiE;4CAS9D,sDAAsD;iCACjE,kCAAkC"}
|
|
@@ -5,9 +5,8 @@ import { chunk_sample_volumetrics } from "../../deferred/chunk_sample_volumetric
|
|
|
5
5
|
import { AVBOIT_EXTINCT_TRANSMITTANCE } from "../../rasterize/native/avboit/AVBOIT_CONSTANTS.js";
|
|
6
6
|
import { AVBOIT_DRAW_TARGETS } from "../../rasterize/native/avboit/avboit_draw_fragment_body.js";
|
|
7
7
|
import { AVBOIT_WARP_STRUCT } from "../../rasterize/native/avboit/AVBOIT_WARP_STRUCT.js";
|
|
8
|
-
import {
|
|
8
|
+
import { chunk_avboit_footprint_depth } from "../../rasterize/native/avboit/chunk_avboit_footprint_depth.js";
|
|
9
9
|
import { chunk_avboit_sample_transmittance } from "../../rasterize/native/avboit/chunk_avboit_sample_transmittance.js";
|
|
10
|
-
import { chunk_avboit_view_depth_to_virtual } from "../../rasterize/native/avboit/chunk_avboit_view_depth_to_virtual.js";
|
|
11
10
|
import { CodeChunk } from "../../shader/compiler/CodeChunk.js";
|
|
12
11
|
import { ShaderResourceSetDescriptor } from "../../shader/resource/ShaderResourceSetDescriptor.js";
|
|
13
12
|
import { ShaderDescriptor } from "../../shader/ShaderDescriptor.js";
|
|
@@ -106,8 +105,8 @@ fn fs_main(in : ParticleVertexOut) -> ParticleAVBOITDrawOutput {
|
|
|
106
105
|
let uv_ddy = dpdy(in.uv) * uv_bias.y;
|
|
107
106
|
|
|
108
107
|
let footprint = select(
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
avboit_footprint_depth(in.view_depth, fwidth(1.0 / in.view_depth)),
|
|
109
|
+
in.view_depth,
|
|
111
110
|
in.blend == PARTICLE_BLEND_ADDITIVE,
|
|
112
111
|
);
|
|
113
112
|
|
|
@@ -125,7 +124,7 @@ fn fs_main(in : ParticleVertexOut) -> ParticleAVBOITDrawOutput {
|
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
|
|
128
|
-
let transmittance = avboit_sample_transmittance(&warp, tIntegral, sLinear, screen_uv,
|
|
127
|
+
let transmittance = avboit_sample_transmittance(&warp, tIntegral, sLinear, screen_uv, footprint);
|
|
129
128
|
|
|
130
129
|
if (all(transmittance <= vec3<f32>(${AVBOIT_EXTINCT_TRANSMITTANCE}))) {
|
|
131
130
|
// nothing this fragment contributes survives what is in front of it; skip the shading
|
|
@@ -158,8 +157,7 @@ fn fs_main(in : ParticleVertexOut) -> ParticleAVBOITDrawOutput {
|
|
|
158
157
|
chunk_particle_billboard_vertex,
|
|
159
158
|
chunk_particle_lighting,
|
|
160
159
|
chunk_sample_volumetrics,
|
|
161
|
-
|
|
162
|
-
chunk_avboit_footprint_bias,
|
|
160
|
+
chunk_avboit_footprint_depth,
|
|
163
161
|
chunk_avboit_sample_transmittance,
|
|
164
162
|
chunk_view_mip_bias,
|
|
165
163
|
]);
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offer the pipelines {@link graph_particle_warmup} dispatches that are its own — see {@link PipelineEnquiry}. The
|
|
3
|
+
* emit, the scan and the scan's command it shares with the simulation, which offers them.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
6
|
+
*/
|
|
7
|
+
export function enquire_particle_warmup_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
1
8
|
/**
|
|
2
9
|
* Run a batch of newly added emitters' simulations forward before they are first shown, so that a
|
|
3
10
|
* continuous effect arrives at its steady state instead of growing into it in front of the player.
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
|
|
1
|
+
{"version":3,"file":"graph_particle_warmup.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/particles/warmup/graph_particle_warmup.js"],"names":[],"mappings":"AAgCA;;;;;GAKG;AACH,2DAFW,OAAO,6CAA6C,EAAE,eAAe,QAS/E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
|
|
@@ -30,6 +30,21 @@ import { shader_particle_warmup_advance } from "./shader_particle_warmup_advance
|
|
|
30
30
|
import { shader_particle_warmup_advance_wide } from "./shader_particle_warmup_advance_wide.js";
|
|
31
31
|
import { warmup_remaining } from "./warmup_schedule.js";
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Offer the pipelines {@link graph_particle_warmup} dispatches that are its own — see {@link PipelineEnquiry}. The
|
|
35
|
+
* emit, the scan and the scan's command it shares with the simulation, which offers them.
|
|
36
|
+
*
|
|
37
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
38
|
+
*/
|
|
39
|
+
export function enquire_particle_warmup_pipelines(enquiry) {
|
|
40
|
+
enquiry.compute.push(shader_particle_warmup_init.pipeline);
|
|
41
|
+
enquiry.compute.push(shader_particle_warmup_reset.pipeline);
|
|
42
|
+
enquiry.compute.push(shader_particle_warmup_tick.pipeline);
|
|
43
|
+
enquiry.compute.push(shader_particle_warmup_advance.pipeline);
|
|
44
|
+
enquiry.compute.push(shader_particle_warmup_advance_wide.pipeline);
|
|
45
|
+
enquiry.compute.push(shader_particle_warmup_migrate.pipeline);
|
|
46
|
+
}
|
|
47
|
+
|
|
33
48
|
/**
|
|
34
49
|
* Run a batch of newly added emitters' simulations forward before they are first shown, so that a
|
|
35
50
|
* continuous effect arrives at its steady state instead of growing into it in front of the player.
|
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
* Output is raw linear `rgba16float` -- no denoising or tone mapping is applied.
|
|
15
15
|
*/
|
|
16
16
|
export class AccumulatingPathTracer {
|
|
17
|
+
/**
|
|
18
|
+
* Offer the pipelines {@link render} records with — see {@link PipelineEnquiry}.
|
|
19
|
+
*
|
|
20
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
21
|
+
*/
|
|
22
|
+
static enquirePipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
17
23
|
/**
|
|
18
24
|
*
|
|
19
25
|
* @param {GraphicsContext} graphics
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccumulatingPathTracer.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccumulatingPathTracer.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;;;GAcG;AACH;IAEI;;;;OAIG;IACH,iCAFW,OAAO,6CAA6C,EAAE,eAAe,QAM/E;IA8ED;;;OAGG;IACH,sBAFW,eAAe,EAkBzB;IAhGD;;;;OAIG;IACH,kBAFU,MAAM,CAEO;IAEvB;;;;OAIG;IACH,wBAFU,MAAM,CAEc;IAE9B;;;;OAIG;IACH,eAFU,OAAO,CAEK;IA+NtB;;;;;;;OAOG;IACH,+BAgBC;IAED;;;;;;;OAOG;IACH;QAJmC,IAAI,EAA5B,cAAc;QACM,KAAK,EAAzB,UAAU;QACR,MAAM,CA+JlB;;CACJ;yBAzdY,OAAO,8DAA8D,EAAE,UAAU;8BAIjF,OAAO,0BAA0B,EAAE,eAAe;6BAClD,OAAO,8BAA8B,EAAE,cAAc"}
|
|
@@ -3,8 +3,11 @@ import { BitSet } from "../../../../core/binary/BitSet.js";
|
|
|
3
3
|
import { TextureResourceDescriptor } from "../../../device/graph/TextureResourceDescriptor.js";
|
|
4
4
|
import { PerspectiveCamera } from "../../camera/PerspectiveCamera.js";
|
|
5
5
|
import { GPUTextureContext } from "../../texture/GPUTextureContext.js";
|
|
6
|
-
import { graph_flood_fill } from "./graph_flood_fill.js";
|
|
7
|
-
import {
|
|
6
|
+
import { enquire_flood_fill_pipelines, graph_flood_fill } from "./graph_flood_fill.js";
|
|
7
|
+
import {
|
|
8
|
+
enquire_float32rgba_to_float16rgba_pipelines,
|
|
9
|
+
graph_float32rgba_to_float16rgba
|
|
10
|
+
} from "./graph_float32rgba_to_float16rgba.js";
|
|
8
11
|
import { shader_accumulating_path_tracer } from "./shader_accumulating_path_tracer.js";
|
|
9
12
|
import { PARTICIPATING_MEDIA_NOISE_SAMPLER_DESCRIPTOR } from "../../volumetrics/noise/PARTICIPATING_MEDIA_NOISE.js";
|
|
10
13
|
|
|
@@ -37,6 +40,17 @@ const RGBA32FLOAT_BYTES_PER_PIXEL = 16;
|
|
|
37
40
|
*/
|
|
38
41
|
export class AccumulatingPathTracer {
|
|
39
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Offer the pipelines {@link render} records with — see {@link PipelineEnquiry}.
|
|
45
|
+
*
|
|
46
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
47
|
+
*/
|
|
48
|
+
static enquirePipelines(enquiry) {
|
|
49
|
+
enquiry.compute.push(shader_accumulating_path_tracer.pipeline);
|
|
50
|
+
enquire_float32rgba_to_float16rgba_pipelines(enquiry);
|
|
51
|
+
enquire_flood_fill_pipelines(enquiry);
|
|
52
|
+
}
|
|
53
|
+
|
|
40
54
|
/**
|
|
41
55
|
* Side length, in pixels, of each square render tile.
|
|
42
56
|
* Best to keep this to multiple of 8, so we fit nicely into workgroup size.
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offer the pipeline {@link graph_float32rgba_to_float16rgba} draws with — see {@link PipelineEnquiry}.
|
|
3
|
+
*
|
|
4
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
5
|
+
*/
|
|
6
|
+
export function enquire_float32rgba_to_float16rgba_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
1
7
|
/**
|
|
2
8
|
*
|
|
3
9
|
* @param {FrameGraph} graph
|
package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_float32rgba_to_float16rgba.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.js"],"names":[],"mappings":"AAuCA;;;;;;;GAOG;AACH,2EALW,MAAM,cACN,MAAM,EAAE,gBACR,OAAO,GACL,MAAM,CAwClB"}
|
|
1
|
+
{"version":3,"file":"graph_float32rgba_to_float16rgba.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.js"],"names":[],"mappings":"AAuCA;;;;GAIG;AACH,sEAFW,OAAO,6CAA6C,EAAE,eAAe,QAI/E;AAED;;;;;;;GAOG;AACH,2EALW,MAAM,cACN,MAAM,EAAE,gBACR,OAAO,GACL,MAAM,CAwClB"}
|
|
@@ -37,6 +37,15 @@ const MIP0_VIEW_DESCRIPTOR = TextureViewDescriptor.from({
|
|
|
37
37
|
mipLevelCount: 1,
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Offer the pipeline {@link graph_float32rgba_to_float16rgba} draws with — see {@link PipelineEnquiry}.
|
|
42
|
+
*
|
|
43
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
44
|
+
*/
|
|
45
|
+
export function enquire_float32rgba_to_float16rgba_pipelines(enquiry) {
|
|
46
|
+
enquiry.render.push(shader.pipeline);
|
|
47
|
+
}
|
|
48
|
+
|
|
40
49
|
/**
|
|
41
50
|
*
|
|
42
51
|
* @param {FrameGraph} graph
|