@woosh/meep-engine 3.78.0 → 3.78.2
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 +21 -0
- package/README.md +1 -1
- package/package.json +1 -1
- 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/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts +119 -0
- package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts.map +1 -0
- package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.js +563 -0
- package/src/generation/wfc/GRID_WFC_PIECE_SOCKET_PREFIX.d.ts +11 -0
- package/src/generation/wfc/GRID_WFC_PIECE_SOCKET_PREFIX.d.ts.map +1 -0
- package/src/generation/wfc/GRID_WFC_PIECE_SOCKET_PREFIX.js +10 -0
- package/src/generation/wfc/GridWFCCompiledTileSet.d.ts +123 -0
- package/src/generation/wfc/GridWFCCompiledTileSet.d.ts.map +1 -0
- package/src/generation/wfc/GridWFCCompiledTileSet.js +355 -0
- package/src/generation/wfc/GridWFCEdge.d.ts +13 -0
- package/src/generation/wfc/GridWFCEdge.d.ts.map +1 -0
- package/src/generation/wfc/GridWFCEdge.js +14 -0
- package/src/generation/wfc/GridWFCTileSet.d.ts +120 -0
- package/src/generation/wfc/GridWFCTileSet.d.ts.map +1 -0
- package/src/generation/wfc/GridWFCTileSet.js +275 -0
- 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/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/GPUHairSystem.d.ts.map +1 -1
- package/src/shade/renderer/hair/GPUHairSystem.js +28 -9
- package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts +50 -9
- package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts.map +1 -1
- package/src/shade/renderer/hair/HAIR_SIMULATION.js +71 -11
- package/src/shade/renderer/hair/shader_hair_simulate.d.ts +22 -16
- package/src/shade/renderer/hair/shader_hair_simulate.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_simulate.js +151 -78
- 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/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/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/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/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 +25 -1
- 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
|
@@ -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
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cache keyed by mip index so the FrameGraph view cache (HashMap with equals)
|
|
3
|
+
* resolves to a stable view per mip level on every frame.
|
|
4
|
+
* @type {TextureViewDescriptor[]}
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Offer the pipelines {@link graph_flood_fill} draws with — see {@link PipelineEnquiry}.
|
|
8
|
+
*
|
|
9
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
10
|
+
*/
|
|
11
|
+
export function enquire_flood_fill_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
1
12
|
/**
|
|
2
13
|
* Flood-fills empty pixels (luma == 0) in the path tracer's accumulated f16
|
|
3
14
|
* texture by averaging non-zero neighborhoods at progressively coarser scales.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_flood_fill.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/path_tracer/accumulating/graph_flood_fill.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph_flood_fill.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/path_tracer/accumulating/graph_flood_fill.js"],"names":[],"mappings":"AA8HA;;;;GAIG;AACH;;;;GAIG;AACH,sDAFW,OAAO,6CAA6C,EAAE,eAAe,QAK/E;AAgBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,kEALW,MAAM,cAEN,MAAM,EAAE,GACN,MAAM,CAgFlB"}
|
|
@@ -129,6 +129,16 @@ const resolve_shader = ImageShader.from({
|
|
|
129
129
|
* resolves to a stable view per mip level on every frame.
|
|
130
130
|
* @type {TextureViewDescriptor[]}
|
|
131
131
|
*/
|
|
132
|
+
/**
|
|
133
|
+
* Offer the pipelines {@link graph_flood_fill} draws with — see {@link PipelineEnquiry}.
|
|
134
|
+
*
|
|
135
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
136
|
+
*/
|
|
137
|
+
export function enquire_flood_fill_pipelines(enquiry) {
|
|
138
|
+
enquiry.render.push(reduce_shader.pipeline);
|
|
139
|
+
enquiry.render.push(resolve_shader.pipeline);
|
|
140
|
+
}
|
|
141
|
+
|
|
132
142
|
const MIP_VIEW_DESCRIPTORS = [];
|
|
133
143
|
|
|
134
144
|
function get_mip_view_descriptor(mip) {
|
|
@@ -125,6 +125,12 @@ export class DepthOfFieldU {
|
|
|
125
125
|
* @param {string} name
|
|
126
126
|
*/
|
|
127
127
|
applyPreset(name: string): void;
|
|
128
|
+
/**
|
|
129
|
+
* Offer the pipelines {@link render} records with at the {@link quality} set now — see {@link PipelineEnquiry}.
|
|
130
|
+
*
|
|
131
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
132
|
+
*/
|
|
133
|
+
enquirePipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
128
134
|
/**
|
|
129
135
|
* Run the depth-of-field post pass and return the new colour handle.
|
|
130
136
|
* Perspective cameras only (the thin-lens CoC has no meaning under
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepthOfFieldU.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.js"],"names":[],"mappings":"AAUA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH;IA0GI;;OAEG;IACH,+BAEC;IAhGD;;;;OAIG;IACH,SAFU,KAAK,GAAC,QAAQ,GAAC,MAAM,GAAC,OAAO,CAEpB;IAEnB;;;OAGG;IACH,QAFU,MAAM,GAAC,IAAI,CAEP;IAEd;;;;;;;;;;OAUG;IACH,OAFU,MAAM,CAES;IAEzB;;;;OAIG;IACH,iBAFU,MAAM,CAEO;IAEvB;;;;OAIG;IACH,cAFU,MAAM,CAEG;IAEnB;;;;OAIG;IACH,UAFU,MAAM,CAED;IAEf;;;;OAIG;IACH,iBAFU,MAAM,GAAC,IAAI,CAEE;IAEvB;;;OAGG;IACH,kBAFU,MAAM,CAEQ;IAExB;;;OAGG;IACH,eAFU,MAAM,CAEI;IAEpB;;;;OAIG;IACH,aAFU,MAAM,CAEA;IAEhB,qEAAqE;IACrE,gBAD2D,MAAM,CAC5C;IAErB;;;;OAIG;IACH,iBAFU,MAAM,CAEM;IAEtB;;;;;OAKG;IACH,gBAFU,MAAM,CAEK;IASrB,6DAA6D;IAC7D,kBAA8C;IAE9C,0DAA0D;IAC1D,qCAAwE;IAExE,uEAAuE;IACvE,gDAAqF;IAErF,kEAAkE;IAClE,yCAA0E;IAE1E,4EAA4E;IAC5E,uBAAsD;IAEtD;;;;OAIG;IACH,oBAFW,MAAM,QAahB;IAED;;;;OAIG;IACH,kBAFW,MAAM,QAehB;
|
|
1
|
+
{"version":3,"file":"DepthOfFieldU.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.js"],"names":[],"mappings":"AAUA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH;IA0GI;;OAEG;IACH,+BAEC;IAhGD;;;;OAIG;IACH,SAFU,KAAK,GAAC,QAAQ,GAAC,MAAM,GAAC,OAAO,CAEpB;IAEnB;;;OAGG;IACH,QAFU,MAAM,GAAC,IAAI,CAEP;IAEd;;;;;;;;;;OAUG;IACH,OAFU,MAAM,CAES;IAEzB;;;;OAIG;IACH,iBAFU,MAAM,CAEO;IAEvB;;;;OAIG;IACH,cAFU,MAAM,CAEG;IAEnB;;;;OAIG;IACH,UAFU,MAAM,CAED;IAEf;;;;OAIG;IACH,iBAFU,MAAM,GAAC,IAAI,CAEE;IAEvB;;;OAGG;IACH,kBAFU,MAAM,CAEQ;IAExB;;;OAGG;IACH,eAFU,MAAM,CAEI;IAEpB;;;;OAIG;IACH,aAFU,MAAM,CAEA;IAEhB,qEAAqE;IACrE,gBAD2D,MAAM,CAC5C;IAErB;;;;OAIG;IACH,iBAFU,MAAM,CAEM;IAEtB;;;;;OAKG;IACH,gBAFU,MAAM,CAEK;IASrB,6DAA6D;IAC7D,kBAA8C;IAE9C,0DAA0D;IAC1D,qCAAwE;IAExE,uEAAuE;IACvE,gDAAqF;IAErF,kEAAkE;IAClE,yCAA0E;IAE1E,4EAA4E;IAC5E,uBAAsD;IAEtD;;;;OAIG;IACH,oBAFW,MAAM,QAahB;IAED;;;;OAIG;IACH,kBAFW,MAAM,QAehB;IAWD;;;;OAIG;IACH,0BAFW,OAAO,gDAAgD,EAAE,eAAe,QAIlF;IAkBD;;;;;;;;;;;;;OAaG;IACH;QAR4B,KAAK,EAAtB,UAAU;QACG,WAAW,EAAxB,MAAM;QACO,KAAK,EAAlB,MAAM;QACkB,MAAM,EAA9B,iBAAiB;QACD,aAAa;QACd,UAAU,EAAzB,MAAM,EAAE;QACN,MAAM,CAmDlB;IAED,uDAAuD;IACvD,gBAKC;;CACJ;yBAtSY,OAAO,iEAAiE,EAAE,UAAU;gCACpF,OAAO,sCAAsC,EAAE,iBAAiB"}
|
|
@@ -6,7 +6,7 @@ import { DOF_FOCUS_STATE_INITIAL_VALUE, DOF_FOCUS_STATE_STRUCT } from "../DOF_FO
|
|
|
6
6
|
import { compute_dof2_uniform } from "./compute_dof2_uniform.js";
|
|
7
7
|
import { DOF2_DEFAULT_QUALITY, DOF2_QUALITY_PRESETS } from "./DOF2_CONFIG.js";
|
|
8
8
|
import { DOF2_PRESETS } from "./DOF2_PRESETS.js";
|
|
9
|
-
import { graph_postprocess_dof2 } from "./graph_postprocess_dof2.js";
|
|
9
|
+
import { enquire_postprocess_dof2_pipelines, graph_postprocess_dof2 } from "./graph_postprocess_dof2.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @typedef {import("../../../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} FrameGraph
|
|
@@ -206,6 +206,15 @@ export class DepthOfFieldU {
|
|
|
206
206
|
return DOF2_QUALITY_PRESETS[this.quality] ?? DOF2_QUALITY_PRESETS[DOF2_DEFAULT_QUALITY];
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
/**
|
|
210
|
+
* Offer the pipelines {@link render} records with at the {@link quality} set now — see {@link PipelineEnquiry}.
|
|
211
|
+
*
|
|
212
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
213
|
+
*/
|
|
214
|
+
enquirePipelines(enquiry) {
|
|
215
|
+
enquire_postprocess_dof2_pipelines(enquiry, this.#resolve_quality().fill);
|
|
216
|
+
}
|
|
217
|
+
|
|
209
218
|
/** Lazily create the double-buffered GPU focus-state buffers. */
|
|
210
219
|
#ensure_focus_buffers() {
|
|
211
220
|
if (this.#focus_buffers.length > 0) {
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offer the pipelines {@link graph_postprocess_dof2} records with — see {@link PipelineEnquiry}.
|
|
3
|
+
*
|
|
4
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
5
|
+
* @param {boolean} fill whether the near-fill pass is recorded, as {@link graph_postprocess_dof2} is told
|
|
6
|
+
*/
|
|
7
|
+
export function enquire_postprocess_dof2_pipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry, fill: boolean): void;
|
|
1
8
|
/**
|
|
2
9
|
* Unreal-style (Diaphragm / Cinematic) gather depth of field. Passes:
|
|
3
10
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_postprocess_dof2.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH;IAb4B,KAAK;IACT,WAAW,EAAxB,MAAM;IACO,KAAK,EAAlB,MAAM;IACiB,MAAM,EAA7B,YAAU,MAAM;IACH,SAAS,EAAtB,MAAM;IACS,UAAU,EAAzB,MAAM,EAAE;IACK,QAAQ,EAArB,MAAM;IACS,IAAI,GAAnB,OAAO;IACS,oBAAoB;IACpB,mBAAmB;IACtB,gBAAgB,EAA7B,MAAM;IACJ,MAAM,CAsJlB"}
|
|
1
|
+
{"version":3,"file":"graph_postprocess_dof2.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.js"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,4DAHW,OAAO,gDAAgD,EAAE,eAAe,QACxE,OAAO,QAejB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH;IAb4B,KAAK;IACT,WAAW,EAAxB,MAAM;IACO,KAAK,EAAlB,MAAM;IACiB,MAAM,EAA7B,YAAU,MAAM;IACH,SAAS,EAAtB,MAAM;IACS,UAAU,EAAzB,MAAM,EAAE;IACK,QAAQ,EAArB,MAAM;IACS,IAAI,GAAnB,OAAO;IACS,oBAAoB;IACpB,mBAAmB;IACtB,gBAAgB,EAA7B,MAAM;IACJ,MAAM,CAsJlB"}
|
|
@@ -11,6 +11,27 @@ import { shader_dof2_setup } from "./shader_dof2_setup.js";
|
|
|
11
11
|
import { shader_dof2_tile_dilate } from "./shader_dof2_tile_dilate.js";
|
|
12
12
|
import { shader_dof2_tile_max } from "./shader_dof2_tile_max.js";
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Offer the pipelines {@link graph_postprocess_dof2} records with — see {@link PipelineEnquiry}.
|
|
16
|
+
*
|
|
17
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
18
|
+
* @param {boolean} fill whether the near-fill pass is recorded, as {@link graph_postprocess_dof2} is told
|
|
19
|
+
*/
|
|
20
|
+
export function enquire_postprocess_dof2_pipelines(enquiry, fill) {
|
|
21
|
+
enquiry.compute.push(shader_dof_autofocus.pipeline);
|
|
22
|
+
enquiry.render.push(shader_dof2_setup.pipeline);
|
|
23
|
+
enquiry.render.push(shader_dof2_tile_max.pipeline);
|
|
24
|
+
enquiry.render.push(shader_dof2_tile_dilate.pipeline);
|
|
25
|
+
enquiry.render.push(shader_dof2_gather_far.pipeline);
|
|
26
|
+
enquiry.render.push(shader_dof2_gather_near.pipeline);
|
|
27
|
+
|
|
28
|
+
if (fill) {
|
|
29
|
+
enquiry.render.push(shader_dof2_fill.pipeline);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
enquiry.render.push(shader_dof2_recombine.pipeline);
|
|
33
|
+
}
|
|
34
|
+
|
|
14
35
|
/**
|
|
15
36
|
* Unreal-style (Diaphragm / Cinematic) gather depth of field. Passes:
|
|
16
37
|
*
|
|
@@ -131,6 +131,13 @@ export class DepthOfField {
|
|
|
131
131
|
* @param {string} name
|
|
132
132
|
*/
|
|
133
133
|
applyPreset(name: string): void;
|
|
134
|
+
/**
|
|
135
|
+
* Offer the pipelines {@link render} records with at the {@link quality} and {@link march_mode} set now — see
|
|
136
|
+
* {@link PipelineEnquiry}.
|
|
137
|
+
*
|
|
138
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
139
|
+
*/
|
|
140
|
+
enquirePipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
134
141
|
/**
|
|
135
142
|
* Run the depth-of-field post pass and return the new colour handle.
|
|
136
143
|
* Perspective cameras only (the thin-lens CoC has no meaning under
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepthOfField.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/dof/raymarch/DepthOfField.js"],"names":[],"mappings":"AASA;;;GAGG;AAEH;;;;;;;;;;;;;;;GAeG;AACH;IAkHI;;OAEG;IACH,+BAEC;IAxGD;;;;OAIG;IACH,SAFU,KAAK,GAAC,QAAQ,GAAC,MAAM,GAAC,OAAO,CAEpB;IAEnB;;;;;;;OAOG;IACH,YAFU,WAAW,GAAC,SAAS,GAAC,OAAO,CAED;IAEtC;;;OAGG;IACH,QAFU,MAAM,GAAC,IAAI,CAEP;IAEd;;;;;;;;;;;OAWG;IACH,OAFU,MAAM,CAES;IAEzB;;;;;OAKG;IACH,iBAFU,MAAM,CAEO;IAEvB;;;;OAIG;IACH,cAFU,MAAM,CAEG;IAEnB;;;;;OAKG;IACH,UAFU,MAAM,CAED;IAEf;;;;;OAKG;IACH,iBAFU,MAAM,GAAC,IAAI,CAEE;IAEvB;;;OAGG;IACH,kBAFU,MAAM,CAEQ;IAExB;;;;;OAKG;IACH,eAFU,MAAM,CAEI;IAEpB;;;;OAIG;IACH,aAFU,MAAM,CAEA;IAEhB,qEAAqE;IACrE,gBAD2D,MAAM,CAC5C;IAErB;;;;OAIG;IACH,iBAFU,MAAM,CAEM;IAStB,6DAA6D;IAC7D,kBAA8C;IAE9C,0DAA0D;IAC1D,qCAAwE;IAExE,uEAAuE;IACvE,gDAAqF;IAErF,kEAAkE;IAClE,yCAA0E;IAE1E,4EAA4E;IAC5E,uBAAsD;IAEtD;;;;OAIG;IACH,oBAFW,MAAM,QAahB;IAED;;;;OAIG;IACH,kBAFW,MAAM,QAehB;
|
|
1
|
+
{"version":3,"file":"DepthOfField.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/dof/raymarch/DepthOfField.js"],"names":[],"mappings":"AASA;;;GAGG;AAEH;;;;;;;;;;;;;;;GAeG;AACH;IAkHI;;OAEG;IACH,+BAEC;IAxGD;;;;OAIG;IACH,SAFU,KAAK,GAAC,QAAQ,GAAC,MAAM,GAAC,OAAO,CAEpB;IAEnB;;;;;;;OAOG;IACH,YAFU,WAAW,GAAC,SAAS,GAAC,OAAO,CAED;IAEtC;;;OAGG;IACH,QAFU,MAAM,GAAC,IAAI,CAEP;IAEd;;;;;;;;;;;OAWG;IACH,OAFU,MAAM,CAES;IAEzB;;;;;OAKG;IACH,iBAFU,MAAM,CAEO;IAEvB;;;;OAIG;IACH,cAFU,MAAM,CAEG;IAEnB;;;;;OAKG;IACH,UAFU,MAAM,CAED;IAEf;;;;;OAKG;IACH,iBAFU,MAAM,GAAC,IAAI,CAEE;IAEvB;;;OAGG;IACH,kBAFU,MAAM,CAEQ;IAExB;;;;;OAKG;IACH,eAFU,MAAM,CAEI;IAEpB;;;;OAIG;IACH,aAFU,MAAM,CAEA;IAEhB,qEAAqE;IACrE,gBAD2D,MAAM,CAC5C;IAErB;;;;OAIG;IACH,iBAFU,MAAM,CAEM;IAStB,6DAA6D;IAC7D,kBAA8C;IAE9C,0DAA0D;IAC1D,qCAAwE;IAExE,uEAAuE;IACvE,gDAAqF;IAErF,kEAAkE;IAClE,yCAA0E;IAE1E,4EAA4E;IAC5E,uBAAsD;IAEtD;;;;OAIG;IACH,oBAFW,MAAM,QAahB;IAED;;;;OAIG;IACH,kBAFW,MAAM,QAehB;IAWD;;;;;OAKG;IACH,0BAFW,OAAO,gDAAgD,EAAE,eAAe,QAIlF;IAkBD;;;;;;;;;;;;;OAaG;IACH;QAR4B,KAAK,EAAtB,UAAU;QACG,WAAW,EAAxB,MAAM;QACO,KAAK,EAAlB,MAAM;QACkB,MAAM,EAA9B,iBAAiB;QACD,aAAa;QACd,UAAU,EAAzB,MAAM,EAAE;QACN,MAAM,CAoDlB;IAED,uDAAuD;IACvD,gBAKC;;CACJ;yBA9SY,OAAO,iEAAiE,EAAE,UAAU;gCACpF,OAAO,sCAAsC,EAAE,iBAAiB"}
|
|
@@ -5,7 +5,7 @@ import { compute_dof_uniform } from "../compute_dof_uniform.js";
|
|
|
5
5
|
import { DOF_AUTOFOCUS_REGION_TEXELS, DOF_DEFAULT_QUALITY, DOF_MARCH_MODE, DOF_QUALITY_PRESETS } from "../DOF_CONFIG.js";
|
|
6
6
|
import { DOF_FOCUS_STATE_INITIAL_VALUE, DOF_FOCUS_STATE_STRUCT } from "../DOF_FOCUS_STATE_STRUCT.js";
|
|
7
7
|
import { DOF_PRESETS } from "../DOF_PRESETS.js";
|
|
8
|
-
import { graph_postprocess_dof } from "./graph_postprocess_dof.js";
|
|
8
|
+
import { enquire_postprocess_dof_pipelines, graph_postprocess_dof } from "./graph_postprocess_dof.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef {import("../../../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} FrameGraph
|
|
@@ -211,6 +211,16 @@ export class DepthOfField {
|
|
|
211
211
|
return DOF_QUALITY_PRESETS[this.quality] ?? DOF_QUALITY_PRESETS[DOF_DEFAULT_QUALITY];
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Offer the pipelines {@link render} records with at the {@link quality} and {@link march_mode} set now — see
|
|
216
|
+
* {@link PipelineEnquiry}.
|
|
217
|
+
*
|
|
218
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
219
|
+
*/
|
|
220
|
+
enquirePipelines(enquiry) {
|
|
221
|
+
enquire_postprocess_dof_pipelines(enquiry, this.#resolve_quality().firefly_cleanup, this.march_mode);
|
|
222
|
+
}
|
|
223
|
+
|
|
214
224
|
/** Lazily create the double-buffered GPU focus-state buffers. */
|
|
215
225
|
#ensure_focus_buffers() {
|
|
216
226
|
if (this.#focus_buffers.length > 0) {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offer the pipelines {@link graph_postprocess_dof} records with — see {@link PipelineEnquiry}. The two arguments
|
|
3
|
+
* are the ones it takes, and pick the march and whether the cleanup is among them.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
6
|
+
* @param {boolean} firefly_cleanup
|
|
7
|
+
* @param {number} march_mode one of {@link DOF_MARCH_MODE}
|
|
8
|
+
*/
|
|
9
|
+
export function enquire_postprocess_dof_pipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry, firefly_cleanup: boolean, march_mode: number): void;
|
|
1
10
|
/**
|
|
2
11
|
* Screen-space ray-marched depth of field — the Tiny Glade model
|
|
3
12
|
* (Stachowiak, GPC 2024). Passes:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_postprocess_dof.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.js"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;IAb4B,KAAK;IACT,WAAW,EAAxB,MAAM;IACO,KAAK,EAAlB,MAAM;IACiB,MAAM,EAA7B,YAAU,MAAM;IACH,SAAS,EAAtB,MAAM;IACS,UAAU,EAAzB,MAAM,EAAE;IACK,QAAQ,EAArB,MAAM;IACS,eAAe,GAA9B,OAAO;IACS,oBAAoB;IACpB,mBAAmB;IACtB,gBAAgB,EAA7B,MAAM;IACJ,MAAM,CAgJlB"}
|
|
1
|
+
{"version":3,"file":"graph_postprocess_dof.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.js"],"names":[],"mappings":"AAgBA;;;;;;;GAOG;AACH,2DAJW,OAAO,gDAAgD,EAAE,eAAe,mBACxE,OAAO,cACP,MAAM,QAqBhB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;IAb4B,KAAK;IACT,WAAW,EAAxB,MAAM;IACO,KAAK,EAAlB,MAAM;IACiB,MAAM,EAA7B,YAAU,MAAM;IACH,SAAS,EAAtB,MAAM;IACS,UAAU,EAAzB,MAAM,EAAE;IACK,QAAQ,EAArB,MAAM;IACS,eAAe,GAA9B,OAAO;IACS,oBAAoB;IACpB,mBAAmB;IACtB,gBAAgB,EAA7B,MAAM;IACJ,MAAM,CAgJlB"}
|
|
@@ -14,6 +14,35 @@ import { DOF_TILE_SIZE, DOF_MARCH_MODE } from "../DOF_CONFIG.js";
|
|
|
14
14
|
import { DOF_COLOR_COC_FORMAT } from "./DOF_TEXTURE_FORMAT.js";
|
|
15
15
|
import { TextureResourceDescriptor } from "../../../../device/graph/TextureResourceDescriptor.js";
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Offer the pipelines {@link graph_postprocess_dof} records with — see {@link PipelineEnquiry}. The two arguments
|
|
19
|
+
* are the ones it takes, and pick the march and whether the cleanup is among them.
|
|
20
|
+
*
|
|
21
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
22
|
+
* @param {boolean} firefly_cleanup
|
|
23
|
+
* @param {number} march_mode one of {@link DOF_MARCH_MODE}
|
|
24
|
+
*/
|
|
25
|
+
export function enquire_postprocess_dof_pipelines(enquiry, firefly_cleanup, march_mode) {
|
|
26
|
+
enquiry.compute.push(shader_dof_autofocus.pipeline);
|
|
27
|
+
enquiry.render.push(shader_dof_prefilter.pipeline);
|
|
28
|
+
enquiry.render.push(shader_dof_tile_max.pipeline);
|
|
29
|
+
enquiry.render.push(shader_dof_tile_dilate.pipeline);
|
|
30
|
+
|
|
31
|
+
if (march_mode === DOF_MARCH_MODE.COMPUTE) {
|
|
32
|
+
enquiry.compute.push(shader_dof_raymarch_compute.pipeline);
|
|
33
|
+
} else if (march_mode === DOF_MARCH_MODE.SLICE) {
|
|
34
|
+
enquiry.compute.push(shader_dof_slice_compute.pipeline);
|
|
35
|
+
} else {
|
|
36
|
+
enquiry.render.push(shader_dof_raymarch.pipeline);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (firefly_cleanup) {
|
|
40
|
+
enquiry.render.push(shader_dof_firefly_cleanup.pipeline);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
enquiry.render.push(shader_dof_composite.pipeline);
|
|
44
|
+
}
|
|
45
|
+
|
|
17
46
|
/**
|
|
18
47
|
* Screen-space ray-marched depth of field — the Tiny Glade model
|
|
19
48
|
* (Stachowiak, GPC 2024). Passes:
|
|
@@ -26,6 +26,12 @@ export class MotionBlur {
|
|
|
26
26
|
* @type {number}
|
|
27
27
|
*/
|
|
28
28
|
strength: number;
|
|
29
|
+
/**
|
|
30
|
+
* Offer the pipelines {@link render} records with — see {@link PipelineEnquiry}.
|
|
31
|
+
*
|
|
32
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
33
|
+
*/
|
|
34
|
+
enquirePipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
29
35
|
/**
|
|
30
36
|
* Run the motion-blur reconstruction and return the new colour handle.
|
|
31
37
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MotionBlur.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/motion_blur/MotionBlur.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MotionBlur.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/motion_blur/MotionBlur.js"],"names":[],"mappings":"AAKA;;GAEG;AAEH;;;;;;;;;;;;GAYG;AACH;IACI;;;;;;;;;OASG;IACH,UAFU,MAAM,CAED;IAEf;;;;OAIG;IACH,0BAFW,OAAO,6CAA6C,EAAE,eAAe,QAI/E;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH;QAT4B,KAAK,EAAtB,UAAU;QACG,WAAW,EAAxB,MAAM;QACO,QAAQ,EAArB,MAAM;QACO,KAAK,EAAlB,MAAM;QACS,UAAU,EAAzB,MAAM,EAAE;QACQ,mBAAmB,GAAnC,MAAM,EAAE;QAEN,MAAM,CAYlB;CACJ;yBApEY,OAAO,8DAA8D,EAAE,UAAU"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
enquire_postprocess_motion_blur_pipelines,
|
|
3
|
+
graph_postprocess_motion_blur
|
|
4
|
+
} from "./graph_postprocess_motion_blur.js";
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
7
|
* @typedef {import("../../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} FrameGraph
|
|
@@ -30,6 +33,15 @@ export class MotionBlur {
|
|
|
30
33
|
*/
|
|
31
34
|
strength = 1.0;
|
|
32
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Offer the pipelines {@link render} records with — see {@link PipelineEnquiry}.
|
|
38
|
+
*
|
|
39
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
40
|
+
*/
|
|
41
|
+
enquirePipelines(enquiry) {
|
|
42
|
+
enquire_postprocess_motion_blur_pipelines(enquiry);
|
|
43
|
+
}
|
|
44
|
+
|
|
33
45
|
/**
|
|
34
46
|
* Run the motion-blur reconstruction and return the new colour handle.
|
|
35
47
|
*
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offer the pipelines {@link graph_postprocess_motion_blur} records with — see {@link PipelineEnquiry}.
|
|
3
|
+
*
|
|
4
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
5
|
+
*/
|
|
6
|
+
export function enquire_postprocess_motion_blur_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
1
7
|
/**
|
|
2
8
|
* Jimenez 2014 reconstruction-filter motion blur. Three image passes:
|
|
3
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_postprocess_motion_blur.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH;IAX4B,KAAK;IACT,WAAW,EAAxB,MAAM;IACO,QAAQ,EAArB,MAAM;IACO,KAAK,EAAlB,MAAM;IACS,UAAU,EAAzB,MAAM,EAAE;IACQ,mBAAmB,GAAnC,MAAM,EAAE;IAGM,QAAQ,GAAtB,MAAM;IACJ,MAAM,CAoElB"}
|
|
1
|
+
{"version":3,"file":"graph_postprocess_motion_blur.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,mEAFW,OAAO,6CAA6C,EAAE,eAAe,QAM/E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH;IAX4B,KAAK;IACT,WAAW,EAAxB,MAAM;IACO,QAAQ,EAArB,MAAM;IACO,KAAK,EAAlB,MAAM;IACS,UAAU,EAAzB,MAAM,EAAE;IACQ,mBAAmB,GAAnC,MAAM,EAAE;IAGM,QAAQ,GAAtB,MAAM;IACJ,MAAM,CAoElB"}
|
|
@@ -5,6 +5,17 @@ import { shader_motion_blur_neighbor_max } from "./shader_motion_blur_neighbor_m
|
|
|
5
5
|
import { shader_motion_blur_reconstruct } from "./shader_motion_blur_reconstruct.js";
|
|
6
6
|
import { shader_motion_blur_tile_max } from "./shader_motion_blur_tile_max.js";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Offer the pipelines {@link graph_postprocess_motion_blur} records with — see {@link PipelineEnquiry}.
|
|
10
|
+
*
|
|
11
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
12
|
+
*/
|
|
13
|
+
export function enquire_postprocess_motion_blur_pipelines(enquiry) {
|
|
14
|
+
enquiry.render.push(shader_motion_blur_tile_max.pipeline);
|
|
15
|
+
enquiry.render.push(shader_motion_blur_neighbor_max.pipeline);
|
|
16
|
+
enquiry.render.push(shader_motion_blur_reconstruct.pipeline);
|
|
17
|
+
}
|
|
18
|
+
|
|
8
19
|
/**
|
|
9
20
|
* Jimenez 2014 reconstruction-filter motion blur. Three image passes:
|
|
10
21
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @typedef {import("../../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} FrameGraph
|
|
3
3
|
* @typedef {import("../../GraphicsContext.js").GraphicsContext} GraphicsContext
|
|
4
|
+
* @typedef {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} PipelineEnquiry
|
|
4
5
|
*/
|
|
5
6
|
/**
|
|
6
7
|
* Neural Super Sampling — port of ARM's NSS reference design onto the engine's FrameGraph.
|
|
@@ -43,6 +44,13 @@
|
|
|
43
44
|
* See `NOTES.md` for the per-texture memory inventory.
|
|
44
45
|
*/
|
|
45
46
|
export class NSS {
|
|
47
|
+
/**
|
|
48
|
+
* Offer the pipelines {@link graph_pass} dispatches — see {@link PipelineEnquiry}. They are the same for
|
|
49
|
+
* every weight bundle and every resolution, so no instance is needed to answer.
|
|
50
|
+
*
|
|
51
|
+
* @param {PipelineEnquiry} enquiry
|
|
52
|
+
*/
|
|
53
|
+
static enquirePipelines(enquiry: PipelineEnquiry): void;
|
|
46
54
|
/**
|
|
47
55
|
* Recommended phase count for a given upscale ratio
|
|
48
56
|
* (`NSS_DEFAULT_JITTER_BASE * upscale_ratio^2` per ARM).
|
|
@@ -202,6 +210,7 @@ export class NSS {
|
|
|
202
210
|
}
|
|
203
211
|
export type FrameGraph = import("../../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph;
|
|
204
212
|
export type GraphicsContext = import("../../GraphicsContext.js").GraphicsContext;
|
|
213
|
+
export type PipelineEnquiry = import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry;
|
|
205
214
|
import { NSSWeights } from "./NSSWeights.js";
|
|
206
215
|
import { TextureResourceDescriptor } from "../../../device/graph/TextureResourceDescriptor.js";
|
|
207
216
|
//# sourceMappingURL=NSS.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSS.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/nss/NSS.js"],"names":[],"mappings":"AAgCA
|
|
1
|
+
{"version":3,"file":"NSS.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/nss/NSS.js"],"names":[],"mappings":"AAgCA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH;IAEI;;;;;OAKG;IACH,iCAFW,eAAe,QAQzB;IAqaD;;;;;;OAMG;IACH,uDAHW,MAAM,GACJ,MAAM,CAKlB;IAsCD,uGAQC;IAxRD;;OAEG;IACH,sBAFW,eAAe,EAwCzB;IAhOD;;;OAGG;IACH,uBAEC;IAED;;;OAGG;IACH,4BAEC;IAED;;;;;OAKG;IACH,eAFU,OAAO,CAEI;IAErB;;;;;;;;OAQG;IACH,mBAFU,MAAM,CAEQ;IAExB;;;;;;;OAOG;IACH,gBAFU,MAAM,CAEM;IAEtB;;;;;OAKG;IACH,YAFU,MAAM,CAED;IAEf;;;;;;;;;;;OAWG;IACH,mBAFU,MAAM,CAEQ;IAExB;;;;;;OAMG;IACH,gBAFU,MAAM,CAEK;IAErB;;;;;;OAMG;IACH,iBAFU,MAAM,CAEM;IAEtB;;;;;;;;;OASG;IACH,eAFU,MAAM,CAEI;IACpB,wCAAwC;IACxC,eAD8B,MAAM,CAChB;IAkKpB;;;;;OAKG;IACH,+BAyHC;IAED,wCAAwC;IACxC,0BAEC;IArKD;;OAEG;IACH,gBA4BC;IAwID;;OAEG;IACH,uCAEC;IAED;;OAEG;IACH,mCAEC;IAcD;;OAEG;IACH,2BAEC;IA2CD,2BAAkF;IAClF,0BAA+C;IAE/C;;;;;;;;;;;;;;;;;;OAkBG;IACH;QAf4B,KAAK,EAAtB,UAAU;QACG,qBAAqB,EAAlC,MAAM;QACO,qBAAqB,EAAlC,MAAM;QACO,gBAAgB,EAA7B,MAAM;QACO,+BAA+B,EAA5C,MAAM;QAKO,qBAAqB,EAAlC,MAAM;QACO,cAAc,EAA3B,MAAM;QACS,iBAAiB,EAAhC,MAAM,EAAE;QACO,iBAAiB,EAAhC,MAAM,EAAE;QACN,MAAM,CA6NlB;;CACJ;yBA9wBY,OAAO,8DAA8D,EAAE,UAAU;8BACjF,OAAO,0BAA0B,EAAE,eAAe;8BAClD,OAAO,6CAA6C,EAAE,eAAe;2BAVvD,iBAAiB;0CAvBF,oDAAoD"}
|