@woosh/meep-engine 3.78.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.
Files changed (190) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/package.json +1 -1
  4. package/src/engine/graphics3/GraphicsEngine.d.ts +19 -1
  5. package/src/engine/graphics3/GraphicsEngine.d.ts.map +1 -1
  6. package/src/engine/graphics3/GraphicsEngine.js +24 -2
  7. package/src/engine/physics/cloth/solver/cloth_step.d.ts.map +1 -1
  8. package/src/engine/physics/cloth/solver/cloth_step.js +4 -1
  9. package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts +36 -2
  10. package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts.map +1 -1
  11. package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.js +60 -3
  12. package/src/shade/device/pipeline/ComputePipelineManager.d.ts +8 -0
  13. package/src/shade/device/pipeline/ComputePipelineManager.d.ts.map +1 -1
  14. package/src/shade/device/pipeline/ComputePipelineManager.js +18 -0
  15. package/src/shade/device/pipeline/RenderPipelineManager.d.ts +8 -0
  16. package/src/shade/device/pipeline/RenderPipelineManager.d.ts.map +1 -1
  17. package/src/shade/device/pipeline/RenderPipelineManager.js +17 -0
  18. package/src/shade/playground/avboit_footprint/index.html +20 -0
  19. package/src/shade/playground/avboit_footprint/main.d.ts +2 -0
  20. package/src/shade/playground/avboit_footprint/main.d.ts.map +1 -0
  21. package/src/shade/playground/avboit_footprint/main.js +428 -0
  22. package/src/shade/playground/probe_clipmap/main.d.ts.map +1 -1
  23. package/src/shade/playground/probe_clipmap/main.js +7 -3
  24. package/src/shade/playground/screen_probes/main.d.ts.map +1 -1
  25. package/src/shade/playground/screen_probes/main.js +7 -3
  26. package/src/shade/renderer/Renderer.d.ts +18 -8
  27. package/src/shade/renderer/Renderer.d.ts.map +1 -1
  28. package/src/shade/renderer/Renderer.js +201 -16
  29. package/src/shade/renderer/RendererConfiguration.d.ts +95 -0
  30. package/src/shade/renderer/RendererConfiguration.d.ts.map +1 -0
  31. package/src/shade/renderer/RendererConfiguration.js +119 -0
  32. package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.d.ts +8 -0
  33. package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.d.ts.map +1 -1
  34. package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.js +34 -0
  35. package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.d.ts +7 -0
  36. package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.d.ts.map +1 -1
  37. package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.js +15 -0
  38. package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +10 -2
  39. package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts.map +1 -1
  40. package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.js +37 -3
  41. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts +6 -0
  42. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts.map +1 -1
  43. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js +31 -0
  44. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.d.ts +7 -0
  45. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.d.ts.map +1 -1
  46. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.js +20 -0
  47. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts +8 -0
  48. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts.map +1 -1
  49. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js +14 -0
  50. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.d.ts +7 -0
  51. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.d.ts.map +1 -1
  52. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.js +13 -0
  53. package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.d.ts +6 -0
  54. package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.d.ts.map +1 -1
  55. package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.js +9 -0
  56. package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.d.ts +11 -0
  57. package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.d.ts.map +1 -1
  58. package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.js +71 -1
  59. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.d.ts +6 -0
  60. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.d.ts.map +1 -1
  61. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.js +9 -0
  62. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.d.ts +6 -0
  63. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.d.ts.map +1 -1
  64. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.js +9 -0
  65. package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.d.ts +6 -0
  66. package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.d.ts.map +1 -1
  67. package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.js +13 -0
  68. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts +9 -0
  69. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts.map +1 -1
  70. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js +47 -0
  71. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts +6 -0
  72. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts.map +1 -1
  73. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js +17 -0
  74. package/src/shade/renderer/particles/GPUParticleSystem.d.ts +8 -0
  75. package/src/shade/renderer/particles/GPUParticleSystem.d.ts.map +1 -1
  76. package/src/shade/renderer/particles/GPUParticleSystem.js +20 -1
  77. package/src/shade/renderer/particles/bounds/graph_particle_bounds.d.ts +6 -0
  78. package/src/shade/renderer/particles/bounds/graph_particle_bounds.d.ts.map +1 -1
  79. package/src/shade/renderer/particles/bounds/graph_particle_bounds.js +11 -1
  80. package/src/shade/renderer/particles/coherence/graph_particle_bucket.d.ts +6 -0
  81. package/src/shade/renderer/particles/coherence/graph_particle_bucket.d.ts.map +1 -1
  82. package/src/shade/renderer/particles/coherence/graph_particle_bucket.js +15 -0
  83. package/src/shade/renderer/particles/graph_particles.d.ts +8 -0
  84. package/src/shade/renderer/particles/graph_particles.d.ts.map +1 -1
  85. package/src/shade/renderer/particles/graph_particles.js +28 -3
  86. package/src/shade/renderer/particles/graph_particles_avboit.d.ts +7 -0
  87. package/src/shade/renderer/particles/graph_particles_avboit.d.ts.map +1 -1
  88. package/src/shade/renderer/particles/graph_particles_avboit.js +14 -0
  89. package/src/shade/renderer/particles/shaders/shader_particle_avboit_draw.d.ts.map +1 -1
  90. package/src/shade/renderer/particles/shaders/shader_particle_avboit_draw.js +5 -7
  91. package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts +7 -0
  92. package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts.map +1 -1
  93. package/src/shade/renderer/particles/warmup/graph_particle_warmup.js +15 -0
  94. package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.d.ts +6 -0
  95. package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.d.ts.map +1 -1
  96. package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.js +16 -2
  97. package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.d.ts +6 -0
  98. package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.d.ts.map +1 -1
  99. package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.js +9 -0
  100. package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.d.ts +11 -0
  101. package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.d.ts.map +1 -1
  102. package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.js +10 -0
  103. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts +6 -0
  104. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts.map +1 -1
  105. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.js +10 -1
  106. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts +7 -0
  107. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts.map +1 -1
  108. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.js +21 -0
  109. package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.d.ts +7 -0
  110. package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.d.ts.map +1 -1
  111. package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.js +11 -1
  112. package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.d.ts +9 -0
  113. package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.d.ts.map +1 -1
  114. package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.js +29 -0
  115. package/src/shade/renderer/postprocess/motion_blur/MotionBlur.d.ts +6 -0
  116. package/src/shade/renderer/postprocess/motion_blur/MotionBlur.d.ts.map +1 -1
  117. package/src/shade/renderer/postprocess/motion_blur/MotionBlur.js +13 -1
  118. package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.d.ts +6 -0
  119. package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.d.ts.map +1 -1
  120. package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.js +11 -0
  121. package/src/shade/renderer/postprocess/nss/NSS.d.ts +9 -0
  122. package/src/shade/renderer/postprocess/nss/NSS.d.ts.map +1 -1
  123. package/src/shade/renderer/postprocess/nss/NSS.js +33 -18
  124. package/src/shade/renderer/postprocess/ssr/SSR.d.ts +8 -0
  125. package/src/shade/renderer/postprocess/ssr/SSR.d.ts.map +1 -1
  126. package/src/shade/renderer/postprocess/ssr/SSR.js +42 -2
  127. package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.d.ts +6 -0
  128. package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.d.ts.map +1 -1
  129. package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.js +10 -0
  130. package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.d.ts +6 -0
  131. package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.d.ts.map +1 -1
  132. package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.js +11 -0
  133. package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.d.ts +8 -0
  134. package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.d.ts.map +1 -1
  135. package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.js +27 -3
  136. package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.d.ts +6 -0
  137. package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.d.ts.map +1 -1
  138. package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.js +10 -0
  139. package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.d.ts +5 -4
  140. package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.d.ts.map +1 -1
  141. package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.js +5 -4
  142. package/src/shade/renderer/rasterize/native/avboit/AVBOIT_CONSTANTS.d.ts +3 -3
  143. package/src/shade/renderer/rasterize/native/avboit/AVBOIT_CONSTANTS.js +3 -3
  144. package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.d.ts.map +1 -1
  145. package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.js +5 -7
  146. package/src/shade/renderer/rasterize/native/avboit/avboit_unlit_draw.d.ts.map +1 -1
  147. package/src/shade/renderer/rasterize/native/avboit/avboit_unlit_draw.js +5 -7
  148. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.d.ts +34 -0
  149. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.d.ts.map +1 -0
  150. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.js +42 -0
  151. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.d.ts +5 -4
  152. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.d.ts.map +1 -1
  153. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.js +8 -7
  154. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.d.ts +2 -2
  155. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.d.ts.map +1 -1
  156. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.js +4 -5
  157. package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.d.ts +9 -0
  158. package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.d.ts.map +1 -1
  159. package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.js +18 -0
  160. package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.d.ts +9 -0
  161. package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.d.ts.map +1 -1
  162. package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.js +15 -0
  163. package/src/shade/renderer/restir/di/ReSTIRDI.d.ts +6 -0
  164. package/src/shade/renderer/restir/di/ReSTIRDI.d.ts.map +1 -1
  165. package/src/shade/renderer/restir/di/ReSTIRDI.js +10 -1
  166. package/src/shade/renderer/restir/di/graph_restir_di.d.ts +9 -0
  167. package/src/shade/renderer/restir/di/graph_restir_di.d.ts.map +1 -1
  168. package/src/shade/renderer/restir/di/graph_restir_di.js +19 -1
  169. package/src/shade/renderer/restir/di/graph_restir_di_denoise.d.ts +6 -0
  170. package/src/shade/renderer/restir/di/graph_restir_di_denoise.d.ts.map +1 -1
  171. package/src/shade/renderer/restir/di/graph_restir_di_denoise.js +9 -0
  172. package/src/shade/renderer/scene/movers/graph_scene_movers.d.ts +7 -0
  173. package/src/shade/renderer/scene/movers/graph_scene_movers.d.ts.map +1 -1
  174. package/src/shade/renderer/scene/movers/graph_scene_movers.js +11 -0
  175. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts +10 -0
  176. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts.map +1 -1
  177. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +25 -1
  178. package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.d.ts +7 -0
  179. package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.d.ts.map +1 -1
  180. package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.js +14 -0
  181. package/src/shade/renderer/text/shaders/shader_text_avboit.d.ts.map +1 -1
  182. package/src/shade/renderer/text/shaders/shader_text_avboit.js +5 -7
  183. package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts +9 -1
  184. package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts.map +1 -1
  185. package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.js +16 -1
  186. package/src/shade/renderer/water/shader_water_avboit.d.ts.map +1 -1
  187. package/src/shade/renderer/water/shader_water_avboit.js +16 -13
  188. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.d.ts +0 -33
  189. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.d.ts.map +0 -1
  190. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.js +0 -45
@@ -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;IA2BD;;;;;;;;;;;;;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;yBA7RY,OAAO,iEAAiE,EAAE,UAAU;gCACpF,OAAO,sCAAsC,EAAE,iBAAiB"}
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;IA2BD;;;;;;;;;;;;;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;yBApSY,OAAO,iEAAiE,EAAE,UAAU;gCACpF,OAAO,sCAAsC,EAAE,iBAAiB"}
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":"AAEA;;GAEG;AAEH;;;;;;;;;;;;GAYG;AACH;IACI;;;;;;;;;OASG;IACH,UAFU,MAAM,CAED;IAEf;;;;;;;;;;;;;;;;;;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;yBA3DY,OAAO,8DAA8D,EAAE,UAAU"}
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 { graph_postprocess_motion_blur } from "./graph_postprocess_motion_blur.js";
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;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH;IAsaI;;;;;;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,CA4NlB;;CACJ;yBA/vBY,OAAO,8DAA8D,EAAE,UAAU;8BACjF,OAAO,0BAA0B,EAAE,eAAe;2BATpC,iBAAiB;0CAvBF,oDAAoD"}
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"}
@@ -33,6 +33,7 @@ import { shader_nss_preprocess } from "./shader_nss_preprocess.js";
33
33
  /**
34
34
  * @typedef {import("../../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} FrameGraph
35
35
  * @typedef {import("../../GraphicsContext.js").GraphicsContext} GraphicsContext
36
+ * @typedef {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} PipelineEnquiry
36
37
  */
37
38
 
38
39
  /**
@@ -78,6 +79,19 @@ import { shader_nss_preprocess } from "./shader_nss_preprocess.js";
78
79
  export class NSS {
79
80
 
80
81
  /**
82
+ * Offer the pipelines {@link graph_pass} dispatches — see {@link PipelineEnquiry}. They are the same for
83
+ * every weight bundle and every resolution, so no instance is needed to answer.
84
+ *
85
+ * @param {PipelineEnquiry} enquiry
86
+ */
87
+ static enquirePipelines(enquiry) {
88
+ enquiry.compute.push(shader_nss_preprocess.pipeline);
89
+ enquiry.compute.push(shader_nss_conv_layer.pipeline);
90
+ enquiry.compute.push(shader_nss_concat.pipeline);
91
+ enquiry.compute.push(shader_nss_extract_feedback.pipeline);
92
+ enquiry.compute.push(shader_nss_postprocess.pipeline);
93
+ }
94
+
81
95
  /**
82
96
  * Sub-pixel jitter offset applied to the current frame's projection, in render-resolution pixels,
83
97
  * range [-0.5, 0.5], and how far it moved since the last frame.
@@ -609,10 +623,11 @@ export class NSS {
609
623
  const gr_feedback_in = graph_import_texture(graph, this.#feedback_textures[fb_idx_in], "nss_feedback_in");
610
624
  const gr_feedback_out = graph_import_texture(graph, this.#feedback_textures[fb_idx_out], "nss_feedback_out");
611
625
 
612
- let pp = [
613
- graph_import_texture(graph, this.#activation_textures[0], "nss_pp_a"),
614
- graph_import_texture(graph, this.#activation_textures[1], "nss_pp_b"),
615
- ];
626
+ // Each of these is rebound to the handle its latest writer returned. A handle names one
627
+ // version of a texture, and writing a texture again means attaching the version the
628
+ // previous writer produced, so the graph orders the two writes.
629
+ let pp_a = graph_import_texture(graph, this.#activation_textures[0], "nss_pp_a");
630
+ let pp_b = graph_import_texture(graph, this.#activation_textures[1], "nss_pp_b");
616
631
  let skip = {
617
632
  A: graph_import_texture(graph, this.#skip_textures[0], "nss_skip_a"),
618
633
  B: graph_import_texture(graph, this.#skip_textures[1], "nss_skip_b"),
@@ -733,24 +748,24 @@ export class NSS {
733
748
  };
734
749
 
735
750
  // ── Encoder ──
736
- let cur = dispatch_conv(0, gr_preprocess_tensor, pp[0]); // conv1 -> pp_a
737
- skip.B = dispatch_conv(1, cur, skip.B); // conv2 -> skip_B
738
- cur = dispatch_conv(2, skip.B, pp[0]); // conv3 -> pp_a
739
- skip.A = dispatch_conv(3, cur, skip.A); // conv4 -> skip_A
740
- cur = dispatch_conv(4, skip.A, pp[1]); // conv5 -> pp_b
741
- cur = dispatch_conv(5, cur, pp[0]); // conv6 -> pp_a
742
- cur = dispatch_conv(6, cur, pp[1]); // conv7 -> pp_b
751
+ pp_a = dispatch_conv(0, gr_preprocess_tensor, pp_a); // conv1 -> pp_a
752
+ skip.B = dispatch_conv(1, pp_a, skip.B); // conv2 -> skip_B
753
+ pp_a = dispatch_conv(2, skip.B, pp_a); // conv3 -> pp_a
754
+ skip.A = dispatch_conv(3, pp_a, skip.A); // conv4 -> skip_A
755
+ pp_b = dispatch_conv(4, skip.A, pp_b); // conv5 -> pp_b
756
+ pp_a = dispatch_conv(5, pp_b, pp_a); // conv6 -> pp_a
757
+ pp_b = dispatch_conv(6, pp_a, pp_b); // conv7 -> pp_b
743
758
 
744
759
  // ── Decoder ──
745
- cur = dispatch_conv(7, cur, pp[0]); // conv8 -> pp_a
746
- gr_concat = dispatch_concat(cur, skip.A, gr_concat,
760
+ pp_a = dispatch_conv(7, pp_b, pp_a); // conv8 -> pp_a
761
+ gr_concat = dispatch_concat(pp_a, skip.A, gr_concat,
747
762
  NSS_HEAD_INPUT_CHANNELS, NSS_CONCAT_CHANNELS); // concat[0] (conv8 + skip_A)
748
- cur = dispatch_conv(8, gr_concat, pp[1]); // conv9 -> pp_b
749
- cur = dispatch_conv(9, cur, pp[0]); // conv10 -> pp_a
750
- gr_concat = dispatch_concat(cur, skip.B, gr_concat,
763
+ pp_b = dispatch_conv(8, gr_concat, pp_b); // conv9 -> pp_b
764
+ pp_a = dispatch_conv(9, pp_b, pp_a); // conv10 -> pp_a
765
+ gr_concat = dispatch_concat(pp_a, skip.B, gr_concat,
751
766
  NSS_HEAD_INPUT_CHANNELS, NSS_CONCAT_CHANNELS); // concat[1] (conv10 + skip_B)
752
- cur = dispatch_conv(10, gr_concat, pp[1]); // conv11 -> pp_b
753
- gr_pre_output = dispatch_conv(11, cur, gr_pre_output); // conv12 -> pre_output
767
+ pp_b = dispatch_conv(10, gr_concat, pp_b); // conv11 -> pp_b
768
+ gr_pre_output = dispatch_conv(11, pp_b, gr_pre_output); // conv12 -> pre_output
754
769
 
755
770
  // ── 6 parallel output heads (K0..K3, K4, FB) ──
756
771
  // All read from the same pre_output tensor; each writes a
@@ -25,6 +25,14 @@ export class SSR {
25
25
  set reprojection_mode(value: number);
26
26
  /** @returns {SSRReprojectionMode} */
27
27
  get reprojection_mode(): number;
28
+ /**
29
+ * Offer the pipelines {@link graph_pass} draws with as the denoising and reprojection are set now — see
30
+ * {@link PipelineEnquiry}. The combine pass is not among them: a frame that reads only the reflections culls it.
31
+ *
32
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
33
+ * @param {ShaderSwitchSet} shader_switches the renderer's, which the resolve is built for
34
+ */
35
+ enquirePipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry, shader_switches: ShaderSwitchSet): void;
28
36
  /**
29
37
  *
30
38
  * @param {number} x
@@ -1 +1 @@
1
- {"version":3,"file":"SSR.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/ssr/SSR.js"],"names":[],"mappings":"AAiBA;IA6EI;;;OAGG;IACH,sBAFW,OAAO,0BAA0B,EAAE,eAAe,EAkB5D;IA1ED,oBAAgB;IAWhB,2CAMC;IAZD;;;;OAIG;IACH,sCAAqE;IAoCrE,kCAMC;IAZD;;;;OAIG;IACH,6BAAmD;IAxBnD,8CAOC;IATD,iGAAiG;IACjG,yCAA2E;IAY3E,qCAMC;IARD,qCAAqC;IACrC,gCAA2D;IA6C3D;;;;OAIG;IACH,UAHW,MAAM,KACN,MAAM,QAUhB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH;QA7BsG,KAAK,EAAhG,OAAO,8DAA8D,EAAE,UAAU;QACjE,WAAW,EAA3B,MAAM;QACW,oBAAoB,GAArC,MAAM;QACU,SAAS,EAAzB,MAAM;QACU,iBAAiB,EAAjC,MAAM;QACU,YAAY,EAA5B,MAAM;QACU,SAAS,EAAzB,MAAM;QACU,YAAY,EAA5B,MAAM;QACU,cAAc,EAA9B,MAAM;QACU,eAAe,EAA/B,MAAM;QACU,iBAAiB,EAAjC,MAAM;QACqB,UAAU,EAArC,UAAU,MAAM,CAAC;QACD,cAAc,EAA9B,MAAM;QACU,eAAe,EAA/B,MAAM;QACoB,eAAe,GAAzC,eAAe;QAEuE,MAAM,GAA5F,OAAO,oDAAoD,EAAE,cAAc;QAE1D,sBAAsB,GAAvC,MAAM;QAEW,2BAA2B,GAA5C,MAAM;QAE4F,MAAM,EAAxG,OAAO,8DAA8D,EAAE,iBAAiB;QAExB,QAAQ,GAAxE,OAAO,8BAA8B,EAAE,cAAc;QACzB,MAAM,GAAlC,UAAU,MAAM,CAAC;QACA,GAAG,GAApB,MAAM;QACJ;QAAC,KAAK,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAC;QAAC,WAAW,EAAC,MAAM,CAAC;QAAC,QAAQ,EAAC,MAAM,CAAC;QAAC,UAAU,EAAC,MAAM,CAAC;QAAC,aAAa,EAAC,MAAM,CAAA;KAAC,CA+QtH;;CACJ;gCAjb+B,0CAA0C"}
1
+ {"version":3,"file":"SSR.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/ssr/SSR.js"],"names":[],"mappings":"AAiBA;IA6EI;;;OAGG;IACH,sBAFW,OAAO,0BAA0B,EAAE,eAAe,EAkB5D;IA1ED,oBAAgB;IAWhB,2CAMC;IAZD;;;;OAIG;IACH,sCAAqE;IAoCrE,kCAMC;IAZD;;;;OAIG;IACH,6BAAmD;IAxBnD,8CAOC;IATD,iGAAiG;IACjG,yCAA2E;IAY3E,qCAMC;IARD,qCAAqC;IACrC,gCAA2D;IA6C3D;;;;;;OAMG;IACH,0BAHW,OAAO,6CAA6C,EAAE,eAAe,mBACrE,eAAe,QAiCzB;IAED;;;;OAIG;IACH,UAHW,MAAM,KACN,MAAM,QAUhB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH;QA7BsG,KAAK,EAAhG,OAAO,8DAA8D,EAAE,UAAU;QACjE,WAAW,EAA3B,MAAM;QACW,oBAAoB,GAArC,MAAM;QACU,SAAS,EAAzB,MAAM;QACU,iBAAiB,EAAjC,MAAM;QACU,YAAY,EAA5B,MAAM;QACU,SAAS,EAAzB,MAAM;QACU,YAAY,EAA5B,MAAM;QACU,cAAc,EAA9B,MAAM;QACU,eAAe,EAA/B,MAAM;QACU,iBAAiB,EAAjC,MAAM;QACqB,UAAU,EAArC,UAAU,MAAM,CAAC;QACD,cAAc,EAA9B,MAAM;QACU,eAAe,EAA/B,MAAM;QACoB,eAAe,GAAzC,eAAe;QAEuE,MAAM,GAA5F,OAAO,oDAAoD,EAAE,cAAc;QAE1D,sBAAsB,GAAvC,MAAM;QAEW,2BAA2B,GAA5C,MAAM;QAE4F,MAAM,EAAxG,OAAO,8DAA8D,EAAE,iBAAiB;QAExB,QAAQ,GAAxE,OAAO,8BAA8B,EAAE,cAAc;QACzB,MAAM,GAAlC,UAAU,MAAM,CAAC;QACA,GAAG,GAApB,MAAM;QACJ;QAAC,KAAK,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAC;QAAC,WAAW,EAAC,MAAM,CAAC;QAAC,QAAQ,EAAC,MAAM,CAAC;QAAC,UAAU,EAAC,MAAM,CAAC;QAAC,aAAa,EAAC,MAAM,CAAA;KAAC,CA+QtH;;CACJ;gCAzd+B,0CAA0C"}
@@ -7,13 +7,13 @@ import { graph_image_pass } from "../../shader/graph/graph_image_pass.js";
7
7
  import { STATIC_GRAPHICS_ENGINE_ASSETS } from "../../STATIC_GRAPHICS_ENGINE_ASSETS.js";
8
8
  import { GPUTextureContext } from "../../texture/GPUTextureContext.js";
9
9
  import { ssr_combine_shader } from "./ssr_combine_shader.js";
10
- import { ssr_graph_prefilter_color } from "./ssr_graph_prefilter_color.js";
10
+ import { enquire_ssr_prefilter_color_pipelines, ssr_graph_prefilter_color } from "./ssr_graph_prefilter_color.js";
11
11
  import { SSR_PREFILTER_MIP_COUNT } from "./SSR_PREFILTER_MIP_COUNT.js";
12
12
  import { ssr_reproject_shader, ssr_reproject_tile_shader } from "./ssr_reproject_shader.js";
13
13
  import { ssr_spatial_denoise_shader, ssr_spatial_denoise_metadata_shader,
14
14
  ssr_spatial_denoise_tile_shader, ssr_spatial_denoise_metadata_tile_shader } from "./ssr_spatial_denoise_shader.js";
15
15
  import { ssr_trace_shader } from "./ssr_trace_shader.js";
16
- import { ssr_graph_denoise_tiles } from "./ssr_graph_denoise_tiles.js";
16
+ import { enquire_ssr_denoise_tiles_pipelines, ssr_graph_denoise_tiles } from "./ssr_graph_denoise_tiles.js";
17
17
 
18
18
  export class SSR {
19
19
 
@@ -114,6 +114,46 @@ export class SSR {
114
114
  }
115
115
  }
116
116
 
117
+ /**
118
+ * Offer the pipelines {@link graph_pass} draws with as the denoising and reprojection are set now — see
119
+ * {@link PipelineEnquiry}. The combine pass is not among them: a frame that reads only the reflections culls it.
120
+ *
121
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
122
+ * @param {ShaderSwitchSet} shader_switches the renderer's, which the resolve is built for
123
+ */
124
+ enquirePipelines(enquiry, shader_switches) {
125
+ const render = enquiry.render;
126
+
127
+ const spatial = this.#spatial_denoising_enabled;
128
+ const tiles = this.#tile_denoising_enabled
129
+ && (spatial || this.#reprojection_mode !== SSRReprojectionMode.CurrentFrame);
130
+
131
+ render.push(ssr_trace_shader.pipeline);
132
+
133
+ enquire_ssr_prefilter_color_pipelines(enquiry);
134
+
135
+ render.push(ssr_resolve_shader.variant(shader_switches).pipeline);
136
+
137
+ if (tiles) {
138
+ enquire_ssr_denoise_tiles_pipelines(enquiry);
139
+ }
140
+
141
+ if (spatial) {
142
+ render.push((tiles ? ssr_spatial_denoise_metadata_tile_shader : ssr_spatial_denoise_metadata_shader).pipeline);
143
+ }
144
+
145
+ // drawn into the history it writes
146
+ render.push((tiles ? ssr_reproject_tile_shader : ssr_reproject_shader).pipeline_for([
147
+ this.#history[0].descriptor.format,
148
+ this.#metadata[0].descriptor.format,
149
+ this.#geometry[0].descriptor.format,
150
+ ]));
151
+
152
+ if (spatial) {
153
+ render.push((tiles ? ssr_spatial_denoise_tile_shader : ssr_spatial_denoise_shader).pipeline);
154
+ }
155
+ }
156
+
117
157
  /**
118
158
  *
119
159
  * @param {number} x
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Offer the pipelines {@link ssr_graph_denoise_tiles} records with — see {@link PipelineEnquiry}.
3
+ *
4
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
5
+ */
6
+ export function enquire_ssr_denoise_tiles_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
1
7
  /**
2
8
  * Frame-local coverage; allocation, lifetime, dependencies and timing belong to the graph.
3
9
  * @param {object} options
@@ -1 +1 @@
1
- {"version":3,"file":"ssr_graph_denoise_tiles.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH;IAXsG,KAAK,EAAhG,OAAO,8DAA8D,EAAE,UAAU;IACtD,UAAU,EAArC,UAAU,MAAM,CAAC;IACD,KAAK,EAArB,MAAM;IACU,QAAQ,EAAxB,MAAM;IACU,OAAO,EAAvB,MAAM;IACU,gBAAgB,EAAhC,MAAM;IACU,QAAQ,EAAxB,MAAM;IACW,aAAa,EAA9B,OAAO;IACoB,YAAY,EAAvC,UAAU,MAAM,CAAC;IACf,MAAM,CAsBlB"}
1
+ {"version":3,"file":"ssr_graph_denoise_tiles.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,6DAFW,OAAO,6CAA6C,EAAE,eAAe,QAK/E;AAED;;;;;;;;;;;;;GAaG;AACH;IAXsG,KAAK,EAAhG,OAAO,8DAA8D,EAAE,UAAU;IACtD,UAAU,EAArC,UAAU,MAAM,CAAC;IACD,KAAK,EAArB,MAAM;IACU,QAAQ,EAAxB,MAAM;IACU,OAAO,EAAvB,MAAM;IACU,gBAAgB,EAAhC,MAAM;IACU,QAAQ,EAAxB,MAAM;IACW,aAAa,EAA9B,OAAO;IACoB,YAAY,EAAvC,UAAU,MAAM,CAAC;IACf,MAAM,CAsBlB"}
@@ -5,6 +5,16 @@ import { SSR_DENOISE_TILE_SIZE } from "./SSR_DENOISE_TILE_SIZE.js";
5
5
  import { shader_ssr_denoise_tile_classify } from "./shader_ssr_denoise_tile_classify.js";
6
6
  import { shader_ssr_denoise_tile_dilate } from "./shader_ssr_denoise_tile_dilate.js";
7
7
 
8
+ /**
9
+ * Offer the pipelines {@link ssr_graph_denoise_tiles} records with — see {@link PipelineEnquiry}.
10
+ *
11
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
12
+ */
13
+ export function enquire_ssr_denoise_tiles_pipelines(enquiry) {
14
+ enquiry.compute.push(shader_ssr_denoise_tile_classify.pipeline);
15
+ enquiry.render.push(shader_ssr_denoise_tile_dilate.pipeline);
16
+ }
17
+
8
18
  /**
9
19
  * Frame-local coverage; allocation, lifetime, dependencies and timing belong to the graph.
10
20
  * @param {object} options
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Offer the pipelines {@link ssr_graph_prefilter_color} draws with — see {@link PipelineEnquiry}.
3
+ *
4
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
5
+ */
6
+ export function enquire_ssr_prefilter_color_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
1
7
  /**
2
8
  * We can use blurred version of the color buffer during SSR resolve to reduce noise on rough surfaces.
3
9
  * The downside is that it messes with temporal stability in my testing.
@@ -1 +1 @@
1
- {"version":3,"file":"ssr_graph_prefilter_color.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;GAYG;AACH;IAP+B,KAAK;IACT,WAAW,EAA3B,MAAM;IACU,WAAW,EAA3B,MAAM;IACU,SAAS,EAAzB,MAAM;IAEY,UAAU,EAA5B,MAAM,EAAE;QA6GlB"}
1
+ {"version":3,"file":"ssr_graph_prefilter_color.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.js"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,+DAFW,OAAO,6CAA6C,EAAE,eAAe,QAM/E;AAED;;;;;;;;;;;;GAYG;AACH;IAP+B,KAAK;IACT,WAAW,EAA3B,MAAM;IACU,WAAW,EAA3B,MAAM;IACU,SAAS,EAAzB,MAAM;IAEY,UAAU,EAA5B,MAAM,EAAE;QA6GlB"}
@@ -6,6 +6,17 @@ import { shader_texture_copy } from "../../texture/util/shader_texture_copy.js";
6
6
  import { shader_texture_sample } from "../../texture/util/shader_texture_sample.js";
7
7
  import { downsample_karis } from "./downsample_karis.js";
8
8
 
9
+ /**
10
+ * Offer the pipelines {@link ssr_graph_prefilter_color} draws with — see {@link PipelineEnquiry}.
11
+ *
12
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
13
+ */
14
+ export function enquire_ssr_prefilter_color_pipelines(enquiry) {
15
+ enquiry.render.push(shader_texture_copy.pipeline);
16
+ enquiry.render.push(downsample_karis.pipeline);
17
+ enquiry.render.push(shader_texture_sample.pipeline);
18
+ }
19
+
9
20
  /**
10
21
  * We can use blurred version of the color buffer during SSR resolve to reduce noise on rough surfaces.
11
22
  * The downside is that it messes with temporal stability in my testing.
@@ -1,3 +1,11 @@
1
+ /**
2
+ * Offer the pipelines {@link graph_prepare_meshlet_draw_commands_by_material} dispatches — see
3
+ * {@link PipelineEnquiry}: a bucket's meshes read out, culled and expanded to meshlets, and those culled, counted
4
+ * and sorted into a draw command a material. Virtual geometry's expansion is its scenes' to offer.
5
+ *
6
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
7
+ */
8
+ export function enquire_prepare_meshlet_draw_commands_by_material_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
1
9
  /**
2
10
  *
3
11
  * @param {FrameGraph} graph
@@ -1 +1 @@
1
- {"version":3,"file":"prepare_meshlet_draw_commands_by_material.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.js"],"names":[],"mappings":"AAmCA;;;;;;;;;;;;;;;;;GAiBG;AACH,0LAJa;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAC;IAAC,wBAAwB,EAAE,MAAM,CAAA;CAAC,CAmWnH"}
1
+ {"version":3,"file":"prepare_meshlet_draw_commands_by_material.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.js"],"names":[],"mappings":"AAwCA;;;;;;GAMG;AACH,qFAFW,OAAO,6CAA6C,EAAE,eAAe,QAY/E;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,0LAJa;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAC;IAAC,wBAAwB,EAAE,MAAM,CAAA;CAAC,CAmWnH"}