@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.
Files changed (213) hide show
  1. package/CHANGELOG.md +21 -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/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts +119 -0
  13. package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts.map +1 -0
  14. package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.js +563 -0
  15. package/src/generation/wfc/GRID_WFC_PIECE_SOCKET_PREFIX.d.ts +11 -0
  16. package/src/generation/wfc/GRID_WFC_PIECE_SOCKET_PREFIX.d.ts.map +1 -0
  17. package/src/generation/wfc/GRID_WFC_PIECE_SOCKET_PREFIX.js +10 -0
  18. package/src/generation/wfc/GridWFCCompiledTileSet.d.ts +123 -0
  19. package/src/generation/wfc/GridWFCCompiledTileSet.d.ts.map +1 -0
  20. package/src/generation/wfc/GridWFCCompiledTileSet.js +355 -0
  21. package/src/generation/wfc/GridWFCEdge.d.ts +13 -0
  22. package/src/generation/wfc/GridWFCEdge.d.ts.map +1 -0
  23. package/src/generation/wfc/GridWFCEdge.js +14 -0
  24. package/src/generation/wfc/GridWFCTileSet.d.ts +120 -0
  25. package/src/generation/wfc/GridWFCTileSet.d.ts.map +1 -0
  26. package/src/generation/wfc/GridWFCTileSet.js +275 -0
  27. package/src/shade/device/pipeline/ComputePipelineManager.d.ts +8 -0
  28. package/src/shade/device/pipeline/ComputePipelineManager.d.ts.map +1 -1
  29. package/src/shade/device/pipeline/ComputePipelineManager.js +18 -0
  30. package/src/shade/device/pipeline/RenderPipelineManager.d.ts +8 -0
  31. package/src/shade/device/pipeline/RenderPipelineManager.d.ts.map +1 -1
  32. package/src/shade/device/pipeline/RenderPipelineManager.js +17 -0
  33. package/src/shade/playground/avboit_footprint/index.html +20 -0
  34. package/src/shade/playground/avboit_footprint/main.d.ts +2 -0
  35. package/src/shade/playground/avboit_footprint/main.d.ts.map +1 -0
  36. package/src/shade/playground/avboit_footprint/main.js +428 -0
  37. package/src/shade/playground/probe_clipmap/main.d.ts.map +1 -1
  38. package/src/shade/playground/probe_clipmap/main.js +7 -3
  39. package/src/shade/playground/screen_probes/main.d.ts.map +1 -1
  40. package/src/shade/playground/screen_probes/main.js +7 -3
  41. package/src/shade/renderer/Renderer.d.ts +18 -8
  42. package/src/shade/renderer/Renderer.d.ts.map +1 -1
  43. package/src/shade/renderer/Renderer.js +201 -16
  44. package/src/shade/renderer/RendererConfiguration.d.ts +95 -0
  45. package/src/shade/renderer/RendererConfiguration.d.ts.map +1 -0
  46. package/src/shade/renderer/RendererConfiguration.js +119 -0
  47. package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.d.ts +8 -0
  48. package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.d.ts.map +1 -1
  49. package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.js +34 -0
  50. package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.d.ts +7 -0
  51. package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.d.ts.map +1 -1
  52. package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.js +15 -0
  53. package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +10 -2
  54. package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts.map +1 -1
  55. package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.js +37 -3
  56. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts +6 -0
  57. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts.map +1 -1
  58. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js +31 -0
  59. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.d.ts +7 -0
  60. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.d.ts.map +1 -1
  61. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.js +20 -0
  62. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts +8 -0
  63. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts.map +1 -1
  64. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js +14 -0
  65. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.d.ts +7 -0
  66. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.d.ts.map +1 -1
  67. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.js +13 -0
  68. package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.d.ts +6 -0
  69. package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.d.ts.map +1 -1
  70. package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.js +9 -0
  71. package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.d.ts +11 -0
  72. package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.d.ts.map +1 -1
  73. package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.js +71 -1
  74. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.d.ts +6 -0
  75. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.d.ts.map +1 -1
  76. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.js +9 -0
  77. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.d.ts +6 -0
  78. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.d.ts.map +1 -1
  79. package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.js +9 -0
  80. package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.d.ts +6 -0
  81. package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.d.ts.map +1 -1
  82. package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.js +13 -0
  83. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts +9 -0
  84. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts.map +1 -1
  85. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js +47 -0
  86. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts +6 -0
  87. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts.map +1 -1
  88. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js +17 -0
  89. package/src/shade/renderer/hair/GPUHairSystem.d.ts.map +1 -1
  90. package/src/shade/renderer/hair/GPUHairSystem.js +28 -9
  91. package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts +50 -9
  92. package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts.map +1 -1
  93. package/src/shade/renderer/hair/HAIR_SIMULATION.js +71 -11
  94. package/src/shade/renderer/hair/shader_hair_simulate.d.ts +22 -16
  95. package/src/shade/renderer/hair/shader_hair_simulate.d.ts.map +1 -1
  96. package/src/shade/renderer/hair/shader_hair_simulate.js +151 -78
  97. package/src/shade/renderer/particles/GPUParticleSystem.d.ts +8 -0
  98. package/src/shade/renderer/particles/GPUParticleSystem.d.ts.map +1 -1
  99. package/src/shade/renderer/particles/GPUParticleSystem.js +20 -1
  100. package/src/shade/renderer/particles/bounds/graph_particle_bounds.d.ts +6 -0
  101. package/src/shade/renderer/particles/bounds/graph_particle_bounds.d.ts.map +1 -1
  102. package/src/shade/renderer/particles/bounds/graph_particle_bounds.js +11 -1
  103. package/src/shade/renderer/particles/coherence/graph_particle_bucket.d.ts +6 -0
  104. package/src/shade/renderer/particles/coherence/graph_particle_bucket.d.ts.map +1 -1
  105. package/src/shade/renderer/particles/coherence/graph_particle_bucket.js +15 -0
  106. package/src/shade/renderer/particles/graph_particles.d.ts +8 -0
  107. package/src/shade/renderer/particles/graph_particles.d.ts.map +1 -1
  108. package/src/shade/renderer/particles/graph_particles.js +28 -3
  109. package/src/shade/renderer/particles/graph_particles_avboit.d.ts +7 -0
  110. package/src/shade/renderer/particles/graph_particles_avboit.d.ts.map +1 -1
  111. package/src/shade/renderer/particles/graph_particles_avboit.js +14 -0
  112. package/src/shade/renderer/particles/shaders/shader_particle_avboit_draw.d.ts.map +1 -1
  113. package/src/shade/renderer/particles/shaders/shader_particle_avboit_draw.js +5 -7
  114. package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts +7 -0
  115. package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts.map +1 -1
  116. package/src/shade/renderer/particles/warmup/graph_particle_warmup.js +15 -0
  117. package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.d.ts +6 -0
  118. package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.d.ts.map +1 -1
  119. package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.js +16 -2
  120. package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.d.ts +6 -0
  121. package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.d.ts.map +1 -1
  122. package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.js +9 -0
  123. package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.d.ts +11 -0
  124. package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.d.ts.map +1 -1
  125. package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.js +10 -0
  126. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts +6 -0
  127. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts.map +1 -1
  128. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.js +10 -1
  129. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts +7 -0
  130. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts.map +1 -1
  131. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.js +21 -0
  132. package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.d.ts +7 -0
  133. package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.d.ts.map +1 -1
  134. package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.js +11 -1
  135. package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.d.ts +9 -0
  136. package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.d.ts.map +1 -1
  137. package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.js +29 -0
  138. package/src/shade/renderer/postprocess/motion_blur/MotionBlur.d.ts +6 -0
  139. package/src/shade/renderer/postprocess/motion_blur/MotionBlur.d.ts.map +1 -1
  140. package/src/shade/renderer/postprocess/motion_blur/MotionBlur.js +13 -1
  141. package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.d.ts +6 -0
  142. package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.d.ts.map +1 -1
  143. package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.js +11 -0
  144. package/src/shade/renderer/postprocess/nss/NSS.d.ts +9 -0
  145. package/src/shade/renderer/postprocess/nss/NSS.d.ts.map +1 -1
  146. package/src/shade/renderer/postprocess/nss/NSS.js +33 -18
  147. package/src/shade/renderer/postprocess/ssr/SSR.d.ts +8 -0
  148. package/src/shade/renderer/postprocess/ssr/SSR.d.ts.map +1 -1
  149. package/src/shade/renderer/postprocess/ssr/SSR.js +42 -2
  150. package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.d.ts +6 -0
  151. package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.d.ts.map +1 -1
  152. package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.js +10 -0
  153. package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.d.ts +6 -0
  154. package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.d.ts.map +1 -1
  155. package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.js +11 -0
  156. package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.d.ts +8 -0
  157. package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.d.ts.map +1 -1
  158. package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.js +27 -3
  159. package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.d.ts +6 -0
  160. package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.d.ts.map +1 -1
  161. package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.js +10 -0
  162. package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.d.ts +5 -4
  163. package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.d.ts.map +1 -1
  164. package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.js +5 -4
  165. package/src/shade/renderer/rasterize/native/avboit/AVBOIT_CONSTANTS.d.ts +3 -3
  166. package/src/shade/renderer/rasterize/native/avboit/AVBOIT_CONSTANTS.js +3 -3
  167. package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.d.ts.map +1 -1
  168. package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.js +5 -7
  169. package/src/shade/renderer/rasterize/native/avboit/avboit_unlit_draw.d.ts.map +1 -1
  170. package/src/shade/renderer/rasterize/native/avboit/avboit_unlit_draw.js +5 -7
  171. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.d.ts +34 -0
  172. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.d.ts.map +1 -0
  173. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.js +42 -0
  174. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.d.ts +5 -4
  175. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.d.ts.map +1 -1
  176. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.js +8 -7
  177. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.d.ts +2 -2
  178. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.d.ts.map +1 -1
  179. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.js +4 -5
  180. package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.d.ts +9 -0
  181. package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.d.ts.map +1 -1
  182. package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.js +18 -0
  183. package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.d.ts +9 -0
  184. package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.d.ts.map +1 -1
  185. package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.js +15 -0
  186. package/src/shade/renderer/restir/di/ReSTIRDI.d.ts +6 -0
  187. package/src/shade/renderer/restir/di/ReSTIRDI.d.ts.map +1 -1
  188. package/src/shade/renderer/restir/di/ReSTIRDI.js +10 -1
  189. package/src/shade/renderer/restir/di/graph_restir_di.d.ts +9 -0
  190. package/src/shade/renderer/restir/di/graph_restir_di.d.ts.map +1 -1
  191. package/src/shade/renderer/restir/di/graph_restir_di.js +19 -1
  192. package/src/shade/renderer/restir/di/graph_restir_di_denoise.d.ts +6 -0
  193. package/src/shade/renderer/restir/di/graph_restir_di_denoise.d.ts.map +1 -1
  194. package/src/shade/renderer/restir/di/graph_restir_di_denoise.js +9 -0
  195. package/src/shade/renderer/scene/movers/graph_scene_movers.d.ts +7 -0
  196. package/src/shade/renderer/scene/movers/graph_scene_movers.d.ts.map +1 -1
  197. package/src/shade/renderer/scene/movers/graph_scene_movers.js +11 -0
  198. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts +10 -0
  199. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts.map +1 -1
  200. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +25 -1
  201. package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.d.ts +7 -0
  202. package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.d.ts.map +1 -1
  203. package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.js +14 -0
  204. package/src/shade/renderer/text/shaders/shader_text_avboit.d.ts.map +1 -1
  205. package/src/shade/renderer/text/shaders/shader_text_avboit.js +5 -7
  206. package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts +9 -1
  207. package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts.map +1 -1
  208. package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.js +16 -1
  209. package/src/shade/renderer/water/shader_water_avboit.d.ts.map +1 -1
  210. package/src/shade/renderer/water/shader_water_avboit.js +16 -13
  211. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.d.ts +0 -33
  212. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.d.ts.map +0 -1
  213. package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.js +0 -45
@@ -1,5 +1,6 @@
1
1
  /**
2
- * The normalized depth coordinate into the integral texture for a fragment at `z_view` (plan §3.8).
2
+ * The normalized depth coordinate into the integral texture for a fragment that has to look in front
3
+ * of view depth `z_front` (plan §3.8): its own depth, or its `avboit_footprint_depth`.
3
4
  *
4
5
  * The sample bias is applied in *virtual* slices before the warp: inside an occupied run that is the
5
6
  * same as biasing the physical coordinate; at the start of a run it walks into the gap before it,
@@ -10,9 +11,9 @@
10
11
  * centre `(p + 0.5) / (P + 1)`: a run boundary lands exactly on a texel and the sample is the sum of
11
12
  * the slices before it, with no share of the slice after.
12
13
  *
13
- * `footprint_bias` is added to the base bias, in the same virtual slices: what the fragment's own
14
- * surface needs on top of it not to occlude itself through the neighbouring voxel columns
15
- * (`avboit_footprint_bias`), or `0` for a surface that writes nothing into the volume.
14
+ * `z_front` is the nearest depth the fragment's own surface was written at in the voxel columns the
15
+ * lookup reads (`avboit_footprint_depth`), and the base bias is taken in front of that; for a surface
16
+ * that writes nothing into the volume it is the fragment's own depth.
16
17
  *
17
18
  * @type {CodeChunk}
18
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"chunk_avboit_integral_depth_coordinate.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;GAiBG;AACH,qDAFU,SAAS,CAgBjB;0BAtCwB,uCAAuC"}
1
+ {"version":3,"file":"chunk_avboit_integral_depth_coordinate.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;GAkBG;AACH,qDAFU,SAAS,CAgBjB;0BAvCwB,uCAAuC"}
@@ -5,7 +5,8 @@ import { chunk_avboit_view_depth_to_virtual } from "./chunk_avboit_view_depth_to
5
5
  import { chunk_avboit_warp } from "./chunk_avboit_warp.js";
6
6
 
7
7
  /**
8
- * The normalized depth coordinate into the integral texture for a fragment at `z_view` (plan §3.8).
8
+ * The normalized depth coordinate into the integral texture for a fragment that has to look in front
9
+ * of view depth `z_front` (plan §3.8): its own depth, or its `avboit_footprint_depth`.
9
10
  *
10
11
  * The sample bias is applied in *virtual* slices before the warp: inside an occupied run that is the
11
12
  * same as biasing the physical coordinate; at the start of a run it walks into the gap before it,
@@ -16,18 +17,18 @@ import { chunk_avboit_warp } from "./chunk_avboit_warp.js";
16
17
  * centre `(p + 0.5) / (P + 1)`: a run boundary lands exactly on a texel and the sample is the sum of
17
18
  * the slices before it, with no share of the slice after.
18
19
  *
19
- * `footprint_bias` is added to the base bias, in the same virtual slices: what the fragment's own
20
- * surface needs on top of it not to occlude itself through the neighbouring voxel columns
21
- * (`avboit_footprint_bias`), or `0` for a surface that writes nothing into the volume.
20
+ * `z_front` is the nearest depth the fragment's own surface was written at in the voxel columns the
21
+ * lookup reads (`avboit_footprint_depth`), and the base bias is taken in front of that; for a surface
22
+ * that writes nothing into the volume it is the fragment's own depth.
22
23
  *
23
24
  * @type {CodeChunk}
24
25
  */
25
26
  export const chunk_avboit_integral_depth_coordinate = CodeChunk.from(
26
27
  //language=WGSL
27
28
  `
28
- fn avboit_integral_depth_coordinate(warp: ptr<storage, ${AVBOIT_WARP_STRUCT.wgsl_ref}, read>, z_view: f32, footprint_bias: f32) -> f32 {
29
- let v = avboit_view_depth_to_virtual(warp, z_view);
30
- let v_biased = max(v - ${AVBOIT_SAMPLE_BIAS_SLICES} - footprint_bias, 0.0);
29
+ fn avboit_integral_depth_coordinate(warp: ptr<storage, ${AVBOIT_WARP_STRUCT.wgsl_ref}, read>, z_front: f32) -> f32 {
30
+ let v = avboit_view_depth_to_virtual(warp, z_front);
31
+ let v_biased = max(v - ${AVBOIT_SAMPLE_BIAS_SLICES}, 0.0);
31
32
  let p = avboit_warp(warp, v_biased);
32
33
  return (p + 0.5) / f32((*warp).physical_count + 1u);
33
34
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * The RGB transmittance of everything in front of a fragment: a trilinear sample of the integral
3
3
  * texture at the biased, warped depth, turned back into transmittance. The draw weights a fragment's
4
- * whole contribution by it. `footprint_bias` is the fragment's `avboit_footprint_bias`, or `0` for a
5
- * surface that writes nothing into the volume; see `avboit_integral_depth_coordinate`.
4
+ * whole contribution by it. `z_front` is the fragment's `avboit_footprint_depth`, or its own view depth
5
+ * for a surface that writes nothing into the volume; see `avboit_integral_depth_coordinate`.
6
6
  *
7
7
  * @type {CodeChunk}
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"chunk_avboit_sample_transmittance.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,gDAFU,SAAS,CAsBjB;0BAjCwB,uCAAuC"}
1
+ {"version":3,"file":"chunk_avboit_sample_transmittance.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,gDAFU,SAAS,CAqBjB;0BAhCwB,uCAAuC"}
@@ -6,8 +6,8 @@ import { chunk_avboit_integral_depth_coordinate } from "./chunk_avboit_integral_
6
6
  /**
7
7
  * The RGB transmittance of everything in front of a fragment: a trilinear sample of the integral
8
8
  * texture at the biased, warped depth, turned back into transmittance. The draw weights a fragment's
9
- * whole contribution by it. `footprint_bias` is the fragment's `avboit_footprint_bias`, or `0` for a
10
- * surface that writes nothing into the volume; see `avboit_integral_depth_coordinate`.
9
+ * whole contribution by it. `z_front` is the fragment's `avboit_footprint_depth`, or its own view depth
10
+ * for a surface that writes nothing into the volume; see `avboit_integral_depth_coordinate`.
11
11
  *
12
12
  * @type {CodeChunk}
13
13
  */
@@ -19,10 +19,9 @@ fn avboit_sample_transmittance(
19
19
  integral: texture_3d<f32>,
20
20
  integral_sampler: sampler,
21
21
  screen_uv: vec2<f32>,
22
- z_view: f32,
23
- footprint_bias: f32,
22
+ z_front: f32,
24
23
  ) -> vec3<f32> {
25
- let w = avboit_integral_depth_coordinate(warp, z_view, footprint_bias);
24
+ let w = avboit_integral_depth_coordinate(warp, z_front);
26
25
  let extinction = textureSampleLevel(integral, integral_sampler, vec3<f32>(screen_uv, w), 0.0).rgb;
27
26
  return avboit_extinction_to_transmittance(extinction);
28
27
  }
@@ -1,3 +1,12 @@
1
+ /**
2
+ * Offer the pipelines {@link graph_rasterize_meshes_transparent_avboit} runs with whatever is transparent — see
3
+ * {@link PipelineEnquiry}: the meshlets' draw commands, the occupancy, the warp, the integral and the resolve. The
4
+ * splat and the draw are a pipeline a material template, which arrive with the materials, and a side channel's
5
+ * passes are the channel's to offer.
6
+ *
7
+ * @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
8
+ */
9
+ export function enquire_rasterize_meshes_transparent_avboit_pipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
1
10
  /**
2
11
  * Extinction volume XY resolution for an internal resolution.
3
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"graph_rasterize_meshes_transparent_avboit.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.js"],"names":[],"mappings":"AA4DA;;;;;GAKG;AACH,oDAHW,UAAU,MAAM,CAAC,GACf,MAAM,EAAE,CAOpB;AAED;;;;;;;;;;;;GAYG;AACH;IAT+B,KAAK;IACA,KAAK;IACd,MAAM,EAAtB,MAAM;IACqB,kBAAkB,EAA7C,UAAU,MAAM,CAAC;IACD,kBAAkB,EAAlC,MAAM;IACU,wBAAwB,EAAxC,MAAM;IACW,SAAS,GAA1B,MAAM;IACJ,MAAM,CA4DlB;AAED;;;;;;;;;;GAUG;AACH;IAP+B,KAAK;IACT,SAAS,EAAzB,MAAM;IACY,gBAAgB,EAAlC,MAAM,EAAE;IACmB,kBAAkB,EAA7C,UAAU,MAAM,CAAC;IACQ,MAAM,GAA/B,cAAc;IACZ,MAAM,CAuDlB;AAED;;;;;;;;;;;;;;;GAeG;AACH,6KAFa;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAiJjE;AAED;;;;;;;;;;GAUG;AACH;IAP+B,KAAK;IACT,IAAI,EAApB,MAAM;IACU,UAAU,EAA1B,MAAM;IACU,QAAQ,EAAxB,MAAM;IACY,gBAAgB,EAAlC,MAAM,EAAE;IACN,MAAM,CAoClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,sUAFa;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC,CA4M7D;AAED;;;;;;;;GAQG;AACH,+EAHW,UAAU,MAAM,CAAC,GACf;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC,CAe/E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH;IA3B+B,KAAK;IACT,OAAO,EAAvB,MAAM;IACkB,QAAQ;IACd,QAAQ,EAA1B,MAAM,EAAE;IACQ,aAAa,EAA7B,MAAM;IACU,aAAa,EAA7B,MAAM;IACuB,MAAM;IACnB,wBAAwB,EAAxC,MAAM;IACU,oBAAoB,EAApC,MAAM;IACU,kBAAkB,EAAlC,MAAM;IACU,eAAe,EAA/B,MAAM;IACU,eAAe,EAA/B,MAAM;IACU,oBAAoB,EAApC,MAAM;IAC6B,sBAAsB,EAAzD;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC;IAGC,eAAe,GAAzC,eAAe;IAGsF,MAAM,EAA3G,OAAO,iEAAiE,EAAE,iBAAiB;IAGlE,MAAM,GAA/B,cAAc;IACiD,aAAa,GAA5E,OAAO,wBAAwB,EAAE,iBAAiB,EAAE;IAElD,MAAM,CA4UlB;+BA/+B8B,qBAAqB;gCAIpB,6CAA6C"}
1
+ {"version":3,"file":"graph_rasterize_meshes_transparent_avboit.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.js"],"names":[],"mappings":"AAuDA;;;;;;;GAOG;AACH,+EAFW,OAAO,gDAAgD,EAAE,eAAe,QASlF;AAQD;;;;;GAKG;AACH,oDAHW,UAAU,MAAM,CAAC,GACf,MAAM,EAAE,CAOpB;AAED;;;;;;;;;;;;GAYG;AACH;IAT+B,KAAK;IACA,KAAK;IACd,MAAM,EAAtB,MAAM;IACqB,kBAAkB,EAA7C,UAAU,MAAM,CAAC;IACD,kBAAkB,EAAlC,MAAM;IACU,wBAAwB,EAAxC,MAAM;IACW,SAAS,GAA1B,MAAM;IACJ,MAAM,CA4DlB;AAED;;;;;;;;;;GAUG;AACH;IAP+B,KAAK;IACT,SAAS,EAAzB,MAAM;IACY,gBAAgB,EAAlC,MAAM,EAAE;IACmB,kBAAkB,EAA7C,UAAU,MAAM,CAAC;IACQ,MAAM,GAA/B,cAAc;IACZ,MAAM,CAuDlB;AAED;;;;;;;;;;;;;;;GAeG;AACH,6KAFa;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAiJjE;AAED;;;;;;;;;;GAUG;AACH;IAP+B,KAAK;IACT,IAAI,EAApB,MAAM;IACU,UAAU,EAA1B,MAAM;IACU,QAAQ,EAAxB,MAAM;IACY,gBAAgB,EAAlC,MAAM,EAAE;IACN,MAAM,CAoClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,sUAFa;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC,CA4M7D;AAED;;;;;;;;GAQG;AACH,+EAHW,UAAU,MAAM,CAAC,GACf;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC,CAe/E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH;IA3B+B,KAAK;IACT,OAAO,EAAvB,MAAM;IACkB,QAAQ;IACd,QAAQ,EAA1B,MAAM,EAAE;IACQ,aAAa,EAA7B,MAAM;IACU,aAAa,EAA7B,MAAM;IACuB,MAAM;IACnB,wBAAwB,EAAxC,MAAM;IACU,oBAAoB,EAApC,MAAM;IACU,kBAAkB,EAAlC,MAAM;IACU,eAAe,EAA/B,MAAM;IACU,eAAe,EAA/B,MAAM;IACU,oBAAoB,EAApC,MAAM;IAC6B,sBAAsB,EAAzD;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC;IAGC,eAAe,GAAzC,eAAe;IAGsF,MAAM,EAA3G,OAAO,iEAAiE,EAAE,iBAAiB;IAGlE,MAAM,GAA/B,cAAc;IACiD,aAAa,GAA5E,OAAO,wBAAwB,EAAE,iBAAiB,EAAE;IAElD,MAAM,CA4UlB;+BAhgC8B,qBAAqB;gCAIpB,6CAA6C"}
@@ -19,6 +19,7 @@ import { rasterization_material_bucket } from "../../expand/bucket/chunk_rasteri
19
19
  import { construct_primitive_state } from "../../bucket/construct_primitive_state.js";
20
20
  import { filter_materials_by_bucket } from "../../bucket/filter_materials_by_bucket.js";
21
21
  import {
22
+ enquire_prepare_meshlet_draw_commands_by_material_pipelines,
22
23
  graph_prepare_meshlet_draw_commands_by_material
23
24
  } from "../../bucket/prepare_meshlet_draw_commands_by_material.js";
24
25
  import { FORWARD_LIGHT_LAYOUT } from "../../forward/forward_template_pipeline.js";
@@ -52,6 +53,23 @@ import {
52
53
 
53
54
  const WARP_BUFFER_SIZE = AVBOIT_WARP_STRUCT.size;
54
55
 
56
+ /**
57
+ * Offer the pipelines {@link graph_rasterize_meshes_transparent_avboit} runs with whatever is transparent — see
58
+ * {@link PipelineEnquiry}: the meshlets' draw commands, the occupancy, the warp, the integral and the resolve. The
59
+ * splat and the draw are a pipeline a material template, which arrive with the materials, and a side channel's
60
+ * passes are the channel's to offer.
61
+ *
62
+ * @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
63
+ */
64
+ export function enquire_rasterize_meshes_transparent_avboit_pipelines(enquiry) {
65
+ enquire_prepare_meshlet_draw_commands_by_material_pipelines(enquiry);
66
+
67
+ enquiry.compute.push(shader_avboit_occupancy.pipeline);
68
+ enquiry.compute.push(shader_avboit_build_warp.pipeline);
69
+ enquiry.compute.push(shader_avboit_integrate.pipeline);
70
+ enquiry.render.push(shader_avboit_resolve.pipeline);
71
+ }
72
+
55
73
  /**
56
74
  * What a caller that passes no settings gets: every switch at its documented default.
57
75
  * @type {AVBOITSettings}
@@ -1,3 +1,12 @@
1
+ /**
2
+ * Offer the pipelines {@link graph_rasterize_meshes_transparent_oit} runs with whatever is transparent — see
3
+ * {@link PipelineEnquiry}: the meshlets' draw commands and the blend over the scene. The moments and their resolve
4
+ * are a pipeline a material template, which arrive with the materials.
5
+ *
6
+ * @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
7
+ * @param {GPUTextureFormat} color_format the scene colour's, which the blend draws into
8
+ */
9
+ export function enquire_rasterize_meshes_transparent_oit_pipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry, color_format: GPUTextureFormat): void;
1
10
  /**
2
11
  * Order-independent transparency. Does not write depth.
3
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"graph_rasterize_meshes_transparent_oit.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.js"],"names":[],"mappings":"AAiZA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wSAFa,MAAM,CA6OlB"}
1
+ {"version":3,"file":"graph_rasterize_meshes_transparent_oit.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.js"],"names":[],"mappings":"AAkCA;;;;;;;GAOG;AACH,4EAHW,OAAO,gDAAgD,EAAE,eAAe,wCAOlF;AAkXD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wSAFa,MAAM,CA6OlB"}
@@ -17,6 +17,7 @@ import { rasterization_material_bucket } from "../../expand/bucket/chunk_rasteri
17
17
  import { construct_primitive_state } from "../../bucket/construct_primitive_state.js";
18
18
  import { filter_materials_by_bucket } from "../../bucket/filter_materials_by_bucket.js";
19
19
  import {
20
+ enquire_prepare_meshlet_draw_commands_by_material_pipelines,
20
21
  graph_prepare_meshlet_draw_commands_by_material
21
22
  } from "../../bucket/prepare_meshlet_draw_commands_by_material.js";
22
23
  import {
@@ -31,6 +32,20 @@ import { ShaderSwitchSet } from "../../../shader/compiler/ShaderSwitchSet.js";
31
32
  import { FORWARD_LIGHT_LAYOUT } from "../../forward/forward_template_pipeline.js";
32
33
  import { SHADING_SCENE_LAYOUT } from "../../forward/SHADING_SCENE_RESOURCE_GROUP.js";
33
34
 
35
+ /**
36
+ * Offer the pipelines {@link graph_rasterize_meshes_transparent_oit} runs with whatever is transparent — see
37
+ * {@link PipelineEnquiry}: the meshlets' draw commands and the blend over the scene. The moments and their resolve
38
+ * are a pipeline a material template, which arrive with the materials.
39
+ *
40
+ * @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
41
+ * @param {GPUTextureFormat} color_format the scene colour's, which the blend draws into
42
+ */
43
+ export function enquire_rasterize_meshes_transparent_oit_pipelines(enquiry, color_format) {
44
+ enquire_prepare_meshlet_draw_commands_by_material_pipelines(enquiry);
45
+
46
+ enquiry.render.push(shader_oit_blend.pipeline_for([color_format]));
47
+ }
48
+
34
49
  /**
35
50
  *
36
51
  * @param {FrameGraph} graph
@@ -42,6 +42,12 @@ export class ReSTIRDI {
42
42
  * @type {number}
43
43
  */
44
44
  denoise_iterations: number;
45
+ /**
46
+ * Offer the pipelines {@link execute} dispatches as this is set now — see {@link PipelineEnquiry}.
47
+ *
48
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
49
+ */
50
+ enquirePipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
45
51
  /**
46
52
  * Add the ReSTIR DI pass to the frame graph and return its HDR radiance texture handle.
47
53
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ReSTIRDI.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/restir/di/ReSTIRDI.js"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH;;;;;;;;;;GAUG;AACH;IAkDI;;OAEG;IACH,sBAFW,eAAe,EAIzB;IArDD;;;OAGG;IACH,WAFU,MAAM,CAEF;IAEd;;;;OAIG;IACH,yBAFU,OAAO,CAEc;IAE/B;;;;OAIG;IACH,iBAFU,OAAO,CAEM;IAEvB;;;;OAIG;IACH,oBAFU,MAAM,CAEO;IA4DvB;;;;;;;;;;;;;;;;;;OAkBG;IACH;QAf8B,KAAK,EAAxB,UAAU;QACa,IAAI,EAA3B,cAAc;QACC,KAAK,EAApB,MAAM;QACS,GAAG,EAAlB,MAAM;QACS,MAAM,EAArB,MAAM;QACS,MAAM,EAArB,MAAM;QACS,QAAQ,EAAvB,MAAM;QACS,QAAQ,EAAvB,MAAM;QACS,cAAc,EAA7B,MAAM;QACS,GAAG,EAAlB,MAAM;QACS,kBAAkB,EAAjC,MAAM;QACS,cAAc,EAA7B,MAAM;QACS,YAAY,EAA3B,MAAM;QACJ,MAAM,CA4ClB;IAED,gBAOC;;CACJ;yBA9KY,OAAO,8DAA8D,EAAE,UAAU;8BACjF,OAAO,0BAA0B,EAAE,eAAe;6BAClD,OAAO,8BAA8B,EAAE,cAAc"}
1
+ {"version":3,"file":"ReSTIRDI.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/restir/di/ReSTIRDI.js"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH;;;;;;;;;;GAUG;AACH;IAkDI;;OAEG;IACH,sBAFW,eAAe,EAIzB;IArDD;;;OAGG;IACH,WAFU,MAAM,CAEF;IAEd;;;;OAIG;IACH,yBAFU,OAAO,CAEc;IAE/B;;;;OAIG;IACH,iBAFU,OAAO,CAEM;IAEvB;;;;OAIG;IACH,oBAFU,MAAM,CAEO;IA8BvB;;;;OAIG;IACH,0BAFW,OAAO,6CAA6C,EAAE,eAAe,QAI/E;IAgCD;;;;;;;;;;;;;;;;;;OAkBG;IACH;QAf8B,KAAK,EAAxB,UAAU;QACa,IAAI,EAA3B,cAAc;QACC,KAAK,EAApB,MAAM;QACS,GAAG,EAAlB,MAAM;QACS,MAAM,EAArB,MAAM;QACS,MAAM,EAArB,MAAM;QACS,QAAQ,EAAvB,MAAM;QACS,QAAQ,EAAvB,MAAM;QACS,cAAc,EAA7B,MAAM;QACS,GAAG,EAAlB,MAAM;QACS,kBAAkB,EAAjC,MAAM;QACS,cAAc,EAA7B,MAAM;QACS,YAAY,EAA3B,MAAM;QACJ,MAAM,CA4ClB;IAED,gBAOC;;CACJ;yBAvLY,OAAO,8DAA8D,EAAE,UAAU;8BACjF,OAAO,0BAA0B,EAAE,eAAe;6BAClD,OAAO,8BAA8B,EAAE,cAAc"}
@@ -1,5 +1,5 @@
1
1
  import { RTXDI_PackedReservoir } from "../reservoir/RTXDI_PackedReservoir.js";
2
- import { graph_restir_di } from "./graph_restir_di.js";
2
+ import { enquire_restir_di_pipelines, graph_restir_di } from "./graph_restir_di.js";
3
3
 
4
4
  /**
5
5
  * @typedef {import("../../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph} FrameGraph
@@ -75,6 +75,15 @@ export class ReSTIRDI {
75
75
  this.#graphics = graphics;
76
76
  }
77
77
 
78
+ /**
79
+ * Offer the pipelines {@link execute} dispatches as this is set now — see {@link PipelineEnquiry}.
80
+ *
81
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
82
+ */
83
+ enquirePipelines(enquiry) {
84
+ enquire_restir_di_pipelines(enquiry, this.denoise_enabled, this.denoise_iterations);
85
+ }
86
+
78
87
  /**
79
88
  * Ensure the reservoir buffers exist and match the given pixel count.
80
89
  * @param {number} width
@@ -1,3 +1,12 @@
1
+ /**
2
+ * Offer the pipelines {@link graph_restir_di} dispatches — see {@link PipelineEnquiry}. The two arguments are the
3
+ * ones it takes, and say whether the denoiser's is among them.
4
+ *
5
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
6
+ * @param {boolean} denoise_enabled
7
+ * @param {number} denoise_iterations
8
+ */
9
+ export function enquire_restir_di_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry, denoise_enabled: boolean, denoise_iterations: number): void;
1
10
  /**
2
11
  * FrameGraph wiring for ReSTIR DI, three compute passes (each within the default
3
12
  * maxStorageBuffersPerShaderStage of 10):
@@ -1 +1 @@
1
- {"version":3,"file":"graph_restir_di.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/restir/di/graph_restir_di.js"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,+RAFa,MAAM,CAuLlB"}
1
+ {"version":3,"file":"graph_restir_di.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/restir/di/graph_restir_di.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,qDAJW,OAAO,6CAA6C,EAAE,eAAe,mBACrE,OAAO,sBACP,MAAM,QAUhB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,+RAFa,MAAM,CAuLlB"}
@@ -3,11 +3,29 @@ import { TextureResourceDescriptor } from "../../../device/graph/TextureResource
3
3
  import { RTXDI_PackedReservoir } from "../reservoir/RTXDI_PackedReservoir.js";
4
4
  import { STATIC_GRAPHICS_ENGINE_ASSETS } from "../../STATIC_GRAPHICS_ENGINE_ASSETS.js";
5
5
  import { graph_import_buffer } from "../../shader/graph/graph_import_buffer.js";
6
- import { graph_restir_di_denoise } from "./graph_restir_di_denoise.js";
6
+ import { enquire_restir_di_denoise_pipelines, graph_restir_di_denoise } from "./graph_restir_di_denoise.js";
7
7
  import { shader_restir_di_resample } from "./shader_restir_di_resample.js";
8
8
  import { shader_restir_di_resolve } from "./shader_restir_di_resolve.js";
9
9
  import { shader_restir_di_spatial } from "./shader_restir_di_spatial.js";
10
10
 
11
+ /**
12
+ * Offer the pipelines {@link graph_restir_di} dispatches — see {@link PipelineEnquiry}. The two arguments are the
13
+ * ones it takes, and say whether the denoiser's is among them.
14
+ *
15
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
16
+ * @param {boolean} denoise_enabled
17
+ * @param {number} denoise_iterations
18
+ */
19
+ export function enquire_restir_di_pipelines(enquiry, denoise_enabled, denoise_iterations) {
20
+ enquiry.compute.push(shader_restir_di_resample.pipeline);
21
+ enquiry.compute.push(shader_restir_di_spatial.pipeline);
22
+ enquiry.compute.push(shader_restir_di_resolve.pipeline);
23
+
24
+ if (denoise_enabled && denoise_iterations > 0) {
25
+ enquire_restir_di_denoise_pipelines(enquiry);
26
+ }
27
+ }
28
+
11
29
  /**
12
30
  * FrameGraph wiring for ReSTIR DI, three compute passes (each within the default
13
31
  * maxStorageBuffersPerShaderStage of 10):
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Offer the pipeline {@link graph_restir_di_denoise} dispatches — see {@link PipelineEnquiry}.
3
+ *
4
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
5
+ */
6
+ export function enquire_restir_di_denoise_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
1
7
  /**
2
8
  * Edge-aware à-trous denoise of the ReSTIR DI radiance: `iterations` passes with
3
9
  * step sizes 1, 2, 4, … (AMD shadow-denoiser cadence), each a fresh transient the
@@ -1 +1 @@
1
- {"version":3,"file":"graph_restir_di_denoise.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/restir/di/graph_restir_di_denoise.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH;IAR8B,KAAK;IACD,IAAI;IACZ,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,MAAM,EAArB,MAAM;IACU,UAAU,GAA1B,MAAM;IACJ,MAAM,CAuDlB"}
1
+ {"version":3,"file":"graph_restir_di_denoise.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/restir/di/graph_restir_di_denoise.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,6DAFW,OAAO,6CAA6C,EAAE,eAAe,QAI/E;AAED;;;;;;;;;;;;;;GAcG;AACH;IAR8B,KAAK;IACD,IAAI;IACZ,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,MAAM,EAArB,MAAM;IACU,UAAU,GAA1B,MAAM;IACJ,MAAM,CAuDlB"}
@@ -1,6 +1,15 @@
1
1
  import { TextureResourceDescriptor } from "../../../device/graph/TextureResourceDescriptor.js";
2
2
  import { shader_restir_di_denoise } from "./shader_restir_di_denoise.js";
3
3
 
4
+ /**
5
+ * Offer the pipeline {@link graph_restir_di_denoise} dispatches — see {@link PipelineEnquiry}.
6
+ *
7
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
8
+ */
9
+ export function enquire_restir_di_denoise_pipelines(enquiry) {
10
+ enquiry.compute.push(shader_restir_di_denoise.pipeline);
11
+ }
12
+
4
13
  /**
5
14
  * Edge-aware à-trous denoise of the ReSTIR DI radiance: `iterations` passes with
6
15
  * step sizes 1, 2, 4, … (AMD shadow-denoiser cadence), each a fresh transient the
@@ -3,6 +3,13 @@
3
3
  * @typedef {import("../GPUSceneContext.js").GPUSceneContext} GPUSceneContext
4
4
  * @typedef {import("./SceneMoverTracker.js").SceneMoverTracker} SceneMoverTracker
5
5
  */
6
+ /**
7
+ * Offer the pipelines {@link graph_scene_movers} dispatches — see {@link PipelineEnquiry}. For whoever reads the
8
+ * mover list: a frame with no reader culls the pass, and draws with neither.
9
+ *
10
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
11
+ */
12
+ export function enquire_scene_movers_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
6
13
  /**
7
14
  * Record the scene's mover list for a frame (`SceneMovers`, {@link SCENE_MOVERS_BYTE_SIZE} bytes):
8
15
  * every mesh row against the box it had last frame ({@link shader_scene_movers}), and every skinned
@@ -1 +1 @@
1
- {"version":3,"file":"graph_scene_movers.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/scene/movers/graph_scene_movers.js"],"names":[],"mappings":"AAOA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH;IAL+B,KAAK,EAAzB,UAAU;IACe,KAAK,EAA9B,eAAe;IACY,OAAO,EAAlC,iBAAiB;IACf,MAAM,CAmFlB;yBAzGY,OAAO,8DAA8D,EAAE,UAAU;8BACjF,OAAO,uBAAuB,EAAE,eAAe;gCAC/C,OAAO,wBAAwB,EAAE,iBAAiB"}
1
+ {"version":3,"file":"graph_scene_movers.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/scene/movers/graph_scene_movers.js"],"names":[],"mappings":"AAOA;;;;GAIG;AAEH;;;;;GAKG;AACH,wDAFW,OAAO,6CAA6C,EAAE,eAAe,QAK/E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH;IAL+B,KAAK,EAAzB,UAAU;IACe,KAAK,EAA9B,eAAe;IACY,OAAO,EAAlC,iBAAiB;IACf,MAAM,CAmFlB;yBApHY,OAAO,8DAA8D,EAAE,UAAU;8BACjF,OAAO,uBAAuB,EAAE,eAAe;gCAC/C,OAAO,wBAAwB,EAAE,iBAAiB"}
@@ -11,6 +11,17 @@ import { shader_scene_skinned_movers } from "./shader_scene_skinned_movers.js";
11
11
  * @typedef {import("./SceneMoverTracker.js").SceneMoverTracker} SceneMoverTracker
12
12
  */
13
13
 
14
+ /**
15
+ * Offer the pipelines {@link graph_scene_movers} dispatches — see {@link PipelineEnquiry}. For whoever reads the
16
+ * mover list: a frame with no reader culls the pass, and draws with neither.
17
+ *
18
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
19
+ */
20
+ export function enquire_scene_movers_pipelines(enquiry) {
21
+ enquiry.compute.push(shader_scene_movers.pipeline);
22
+ enquiry.compute.push(shader_scene_skinned_movers.pipeline);
23
+ }
24
+
14
25
  /**
15
26
  * Record the scene's mover list for a frame (`SceneMovers`, {@link SCENE_MOVERS_BYTE_SIZE} bytes):
16
27
  * every mesh row against the box it had last frame ({@link shader_scene_movers}), and every skinned
@@ -10,6 +10,16 @@ export class GPUSceneShadowmapContext {
10
10
  * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
11
11
  */
12
12
  static enquirePipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
13
+ /**
14
+ * Offer the pipelines that follow from how a context is set — see {@link PipelineEnquiry}: the point lights'
15
+ * remap into the atlas, by which generator makes their faces, and the feedback of virtual shadow maps. Beside
16
+ * {@link enquirePipelines}, which offers what every setting shares.
17
+ *
18
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
19
+ * @param {boolean} use_tetrahedron_point_shadows as {@link use_tetrahedron_point_shadows} will be set
20
+ * @param {boolean} use_virtual_shadow_maps as {@link use_virtual_shadow_maps} will be set
21
+ */
22
+ static enquireSettingPipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry, use_tetrahedron_point_shadows: boolean, use_virtual_shadow_maps: boolean): void;
13
23
  /**
14
24
  *
15
25
  * @param {GraphicsContext} graphics
@@ -1 +1 @@
1
- {"version":3,"file":"GPUSceneShadowmapContext.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js"],"names":[],"mappings":"AAsKA;;GAEG;AACH;IACI;;;;;;OAMG;IACH,iCAFW,OAAO,6CAA6C,EAAE,eAAe,QAQ/E;IA+aD;;;;;;;;OAQG;IACH,sBAPW,eAAe,aACf,eAAe,SAGf,kBAAkB,EAiE5B;IApfD,2BAAwG;IAExG;;;OAGG;IACH,SAFU,iBAAiB,CAEnB;IAQR;;;;;;;;OAQG;IACH,qBAFU,WAAW,CAED;IAsCpB;;;;;;;;OAQG;IACH,SAFU,OAAO,CAEF;IAEf;;;;;;;;;;OAUG;IACH,+BAFU,OAAO,CAEqB;IAEtC;;;;;;OAMG;IACH,yBAFU,OAAO,CAEe;IAehC;;;;;OAKG;IACH,mCAIC;IAjBD;;OAEG;IACH,kCAEC;IAcD;;;;;OAKG;IACH,kBAFU,MAAM,CAEK;IAiBrB;;;;OAIG;IACH,uCAMC;IAlBD;;OAEG;IACH,sCAEC;IA6BD;;;;OAIG;IACH,uCAMC;IAlBD;;OAEG;IACH,sCAEC;IA6BD;;;;OAIG;IACH,4CAKC;IAjBD;;OAEG;IACH,2CAEC;IA2BD;;;;;OAKG;IACH,wCAKC;IAlBD;;OAEG;IACH,uCAEC;IA4BD;;;;;;;;OAQG;IACH,6BAIC;IApBD;;OAEG;IACH,4BAEC;IA0CD;;;;OAIG;IACH,6BAIC;IAhBD;;OAEG;IACH,4BAEC;IA2FD;;OAEG;IACH,iCAEC;IAED;;;;;;OAMG;IACH,oCAEC;IAED;;;;;OAKG;IACH,oCAEC;IAoGD;;;;;OAKG;IACH,4BAMC;IA2MD;;;;;;;;;;;;OAYG;IACH;QAN+B,KAAK,EAAzB,UAAU;QACqD,IAAI,EAAnE,OAAO,8BAA8B,EAAE,cAAc;QACrC,KAAK,EAArB,MAAM;QACU,MAAM,EAAtB,MAAM;aA+BhB;IAiMD;;;;;;;OAOG;IACH,eAFa,OAAO,gCAAgC,EAAE,eAAe,EAAE,CA6CtE;IAED;;;;OAIG;IACH,+BAEC;IASD;;;;OAIG;IACH,eAHW,KAAK,GACH,SAAS,GAAC,SAAS,CAI/B;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,6BAPW,MAAM,SAEN,eAAe,eACf,MAAM,mBACN,UAAU,MAAM,CAAC,QA0G3B;IA2GD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,kBAFW,sBAAsB,QA0FhC;IA0bD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,kBALa,OAAO,CAsTnB;IAED;;;;;;;;;;OAUG;IACH,iBALW,MAAM,SACN,MAAM,GACJ,KAAK,CAejB;IA2DD,gBAiBC;;CACJ;qCAx0EY,OAAO,2CAA2C,EAAE,sBAAsB;8BAC1E,OAAO,0BAA0B,EAAE,eAAe;qBAClD,OAAO,wBAAwB,EAAE,MAAM;iCACvC,OAAO,mCAAmC,EAAE,kBAAkB;oBAC9D,OAAO,4BAA4B,EAAE,KAAK;8BAC1C,OAAO,gCAAgC,EAAE,eAAe;wBACxD,OAAO,gBAAgB,EAAE,SAAS;8BAClC,OAAO,oDAAoD,EAAE,eAAe;oCAtFrD,+DAA+D;kCAuBjE,oCAAoC;4BAI1C,2BAA2B;2BA1B5B,8DAA8D;kBAFvE,wCAAwC"}
1
+ {"version":3,"file":"GPUSceneShadowmapContext.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js"],"names":[],"mappings":"AAsKA;;GAEG;AACH;IACI;;;;;;OAMG;IACH,iCAFW,OAAO,6CAA6C,EAAE,eAAe,QAQ/E;IAED;;;;;;;;OAQG;IACH,wCAJW,OAAO,6CAA6C,EAAE,eAAe,iCACrE,OAAO,2BACP,OAAO,QAejB;IA+aD;;;;;;;;OAQG;IACH,sBAPW,eAAe,aACf,eAAe,SAGf,kBAAkB,EAiE5B;IApfD,2BAAwG;IAExG;;;OAGG;IACH,SAFU,iBAAiB,CAEnB;IAQR;;;;;;;;OAQG;IACH,qBAFU,WAAW,CAED;IAsCpB;;;;;;;;OAQG;IACH,SAFU,OAAO,CAEF;IAEf;;;;;;;;;;OAUG;IACH,+BAFU,OAAO,CAEqB;IAEtC;;;;;;OAMG;IACH,yBAFU,OAAO,CAEe;IAehC;;;;;OAKG;IACH,mCAIC;IAjBD;;OAEG;IACH,kCAEC;IAcD;;;;;OAKG;IACH,kBAFU,MAAM,CAEK;IAiBrB;;;;OAIG;IACH,uCAMC;IAlBD;;OAEG;IACH,sCAEC;IA6BD;;;;OAIG;IACH,uCAMC;IAlBD;;OAEG;IACH,sCAEC;IA6BD;;;;OAIG;IACH,4CAKC;IAjBD;;OAEG;IACH,2CAEC;IA2BD;;;;;OAKG;IACH,wCAKC;IAlBD;;OAEG;IACH,uCAEC;IA4BD;;;;;;;;OAQG;IACH,6BAIC;IApBD;;OAEG;IACH,4BAEC;IA0CD;;;;OAIG;IACH,6BAIC;IAhBD;;OAEG;IACH,4BAEC;IA2FD;;OAEG;IACH,iCAEC;IAED;;;;;;OAMG;IACH,oCAEC;IAED;;;;;OAKG;IACH,oCAEC;IAoGD;;;;;OAKG;IACH,4BAMC;IA2MD;;;;;;;;;;;;OAYG;IACH;QAN+B,KAAK,EAAzB,UAAU;QACqD,IAAI,EAAnE,OAAO,8BAA8B,EAAE,cAAc;QACrC,KAAK,EAArB,MAAM;QACU,MAAM,EAAtB,MAAM;aA+BhB;IAiMD;;;;;;;OAOG;IACH,eAFa,OAAO,gCAAgC,EAAE,eAAe,EAAE,CA6CtE;IAED;;;;OAIG;IACH,+BAEC;IASD;;;;OAIG;IACH,eAHW,KAAK,GACH,SAAS,GAAC,SAAS,CAI/B;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,6BAPW,MAAM,SAEN,eAAe,eACf,MAAM,mBACN,UAAU,MAAM,CAAC,QA0G3B;IA2GD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,kBAFW,sBAAsB,QA0FhC;IA0bD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,kBALa,OAAO,CAsTnB;IAED;;;;;;;;;;OAUG;IACH,iBALW,MAAM,SACN,MAAM,GACJ,KAAK,CAejB;IA2DD,gBAiBC;;CACJ;qCAh2EY,OAAO,2CAA2C,EAAE,sBAAsB;8BAC1E,OAAO,0BAA0B,EAAE,eAAe;qBAClD,OAAO,wBAAwB,EAAE,MAAM;iCACvC,OAAO,mCAAmC,EAAE,kBAAkB;oBAC9D,OAAO,4BAA4B,EAAE,KAAK;8BAC1C,OAAO,gCAAgC,EAAE,eAAe;wBACxD,OAAO,gBAAgB,EAAE,SAAS;8BAClC,OAAO,oDAAoD,EAAE,eAAe;oCAtFrD,+DAA+D;kCAuBjE,oCAAoC;4BAI1C,2BAA2B;2BA1B5B,8DAA8D;kBAFvE,wCAAwC"}
@@ -75,7 +75,7 @@ import { DEFAULT_VSM_PAGE_BUDGET } from "../vsm/DEFAULT_VSM_PAGE_BUDGET.js";
75
75
  import { DEFAULT_VSM_LOW_LOAD_FACTOR } from "../vsm/DEFAULT_VSM_LOW_LOAD_FACTOR.js";
76
76
  import { DEFAULT_VSM_MAX_DYNAMIC_LOD_BIAS } from "../vsm/DEFAULT_VSM_MAX_DYNAMIC_LOD_BIAS.js";
77
77
  import { DEFAULT_VSM_MAX_LOAD_FACTOR } from "../vsm/DEFAULT_VSM_MAX_LOAD_FACTOR.js";
78
- import { graph_vsm_feedback } from "../vsm/graph_vsm_feedback.js";
78
+ import { enquire_vsm_feedback_pipelines, graph_vsm_feedback } from "../vsm/graph_vsm_feedback.js";
79
79
  import { VirtualShadowMap } from "../vsm/VirtualShadowMap.js";
80
80
  import { VSM_DEFAULT_REQUEST_CAPACITY } from "../vsm/VSM_FEEDBACK_LAYOUT.js";
81
81
  import { VSM_SLOT_EMPTY } from "../vsm/VSM_SLOT_STRUCT.js";
@@ -183,6 +183,30 @@ export class GPUSceneShadowmapContext {
183
183
  enquire_texture_fill_rectangle_depth_pipeline(enquiry);
184
184
  }
185
185
 
186
+ /**
187
+ * Offer the pipelines that follow from how a context is set — see {@link PipelineEnquiry}: the point lights'
188
+ * remap into the atlas, by which generator makes their faces, and the feedback of virtual shadow maps. Beside
189
+ * {@link enquirePipelines}, which offers what every setting shares.
190
+ *
191
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
192
+ * @param {boolean} use_tetrahedron_point_shadows as {@link use_tetrahedron_point_shadows} will be set
193
+ * @param {boolean} use_virtual_shadow_maps as {@link use_virtual_shadow_maps} will be set
194
+ */
195
+ static enquireSettingPipelines(enquiry, use_tetrahedron_point_shadows, use_virtual_shadow_maps) {
196
+ assert.isBoolean(use_tetrahedron_point_shadows, 'use_tetrahedron_point_shadows');
197
+ assert.isBoolean(use_virtual_shadow_maps, 'use_virtual_shadow_maps');
198
+
199
+ enquiry.render.push(
200
+ use_tetrahedron_point_shadows
201
+ ? shader_shadowmap_remap_tetrahedron_to_octahedral.pipeline
202
+ : shader_shadowmap_remap_cube_to_octahedral.pipeline
203
+ );
204
+
205
+ if (use_virtual_shadow_maps) {
206
+ enquire_vsm_feedback_pipelines(enquiry);
207
+ }
208
+ }
209
+
186
210
  atlas = new MaxRectanglesPacker(DEFAULT_SHADOWMAP_ATLAS_RESOLUTION, DEFAULT_SHADOWMAP_ATLAS_RESOLUTION);
187
211
 
188
212
  /**
@@ -1,3 +1,10 @@
1
+ /**
2
+ * Offer the pipelines {@link graph_vsm_feedback} dispatches — see {@link PipelineEnquiry}. The scene's mover list
3
+ * it reads is recorded with pipelines of its own, for whoever turns virtual shadow maps on to offer beside these.
4
+ *
5
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
6
+ */
7
+ export function enquire_vsm_feedback_pipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
1
8
  /**
2
9
  * Record a frame's virtual shadow map feedback into the `Shading` graph, once the main view's depth
3
10
  * exists, and read it back.
@@ -1 +1 @@
1
- {"version":3,"file":"graph_vsm_feedback.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/shadow/vsm/graph_vsm_feedback.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IAP+B,KAAK;IACsC,IAAI,EAAnE,OAAO,8BAA8B,EAAE,cAAc;IACrC,KAAK,EAArB,MAAM;IACsB,IAAI,EAAhC,kBAAkB;IACF,MAAM,EAAtB,MAAM;IACe,cAAc;SAwB7C;AApDD;;;;;;GAMG;AACH,sCAFU,MAAM,CAEyB"}
1
+ {"version":3,"file":"graph_vsm_feedback.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/shadow/vsm/graph_vsm_feedback.js"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,wDAFW,OAAO,6CAA6C,EAAE,eAAe,QAQ/E;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IAP+B,KAAK;IACsC,IAAI,EAAnE,OAAO,8BAA8B,EAAE,cAAc;IACrC,KAAK,EAArB,MAAM;IACsB,IAAI,EAAhC,kBAAkB;IACF,MAAM,EAAtB,MAAM;IACe,cAAc;SAwB7C;AAlED;;;;;;GAMG;AACH,sCAFU,MAAM,CAEyB"}
@@ -15,6 +15,20 @@ import { vsm_feedback_word_count } from "./VSM_FEEDBACK_LAYOUT.js";
15
15
  */
16
16
  export const VSM_READBACKS_IN_FLIGHT = 3;
17
17
 
18
+ /**
19
+ * Offer the pipelines {@link graph_vsm_feedback} dispatches — see {@link PipelineEnquiry}. The scene's mover list
20
+ * it reads is recorded with pipelines of its own, for whoever turns virtual shadow maps on to offer beside these.
21
+ *
22
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
23
+ */
24
+ export function enquire_vsm_feedback_pipelines(enquiry) {
25
+ enquiry.compute.push(shader_vsm_stale_args.pipeline);
26
+ enquiry.compute.push(shader_vsm_stale.pipeline);
27
+ enquiry.compute.push(shader_vsm_demand.pipeline);
28
+ enquiry.compute.push(shader_vsm_gather_counts.pipeline);
29
+ enquiry.compute.push(shader_vsm_stale_compact.pipeline);
30
+ }
31
+
18
32
  /**
19
33
  * Record a frame's virtual shadow map feedback into the `Shading` graph, once the main view's depth
20
34
  * exists, and read it back.
@@ -1 +1 @@
1
- {"version":3,"file":"shader_text_avboit.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/text/shaders/shader_text_avboit.js"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,2CAFU,MAAM,CAE8B;AAuH9C,4IAIG;AAEH,sEAA2D;AAE3D,yDAAyD;AACzD,wDAAyD;AAuFzD,2IAIG;AAEH,qEAAyD;AAEzD,wDAAwD;AACxD,uDAAuD;4CAxOX,sDAAsD;iCACjE,kCAAkC"}
1
+ {"version":3,"file":"shader_text_avboit.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/text/shaders/shader_text_avboit.js"],"names":[],"mappings":"AAsBA;;;GAGG;AACH,2CAFU,MAAM,CAE8B;AAuH9C,4IAIG;AAEH,sEAA2D;AAE3D,yDAAyD;AACzD,wDAAyD;AAsFzD,2IAIG;AAEH,qEAAyD;AAEzD,wDAAwD;AACxD,uDAAuD;4CAvOX,sDAAsD;iCACjE,kCAAkC"}
@@ -8,13 +8,12 @@ import {
8
8
  AVBOIT_UNLIT_SPLAT_SAMPLES
9
9
  } from "../../rasterize/native/avboit/avboit_unlit_splat.js";
10
10
  import { chunk_avboit_coverage } from "../../rasterize/native/avboit/chunk_avboit_coverage.js";
11
- import { chunk_avboit_footprint_bias } from "../../rasterize/native/avboit/chunk_avboit_footprint_bias.js";
11
+ import { chunk_avboit_footprint_depth } from "../../rasterize/native/avboit/chunk_avboit_footprint_depth.js";
12
12
  import { chunk_avboit_premultiplied_contribution } from "../../rasterize/native/avboit/chunk_avboit_premultiplied_contribution.js";
13
13
  import { chunk_avboit_sample_transmittance } from "../../rasterize/native/avboit/chunk_avboit_sample_transmittance.js";
14
14
  import { chunk_avboit_splat_slice } from "../../rasterize/native/avboit/chunk_avboit_splat_slice.js";
15
15
  import { chunk_avboit_transmittance_to_extinction } from "../../rasterize/native/avboit/chunk_avboit_transmittance_to_extinction.js";
16
16
  import { chunk_avboit_view_depth_to_physical } from "../../rasterize/native/avboit/chunk_avboit_view_depth_to_physical.js";
17
- import { chunk_avboit_view_depth_to_virtual } from "../../rasterize/native/avboit/chunk_avboit_view_depth_to_virtual.js";
18
17
  import { AVBOIT_SPLAT_VOLUME_GROUP } from "../../rasterize/native/avboit/shader_avboit_splat.js";
19
18
  import { CodeChunk } from "../../shader/compiler/CodeChunk.js";
20
19
  import { ShaderResourceSetDescriptor } from "../../shader/resource/ShaderResourceSetDescriptor.js";
@@ -187,8 +186,8 @@ fn vs_main(@builtin(vertex_index) vertex_index : u32, @builtin(instance_index) i
187
186
  @fragment
188
187
  fn fs_main(fragment : TextAVBOITVaryings) -> TextAVBOITDrawOutput {
189
188
  // both taken first, in uniform control flow. A text seen at an angle runs through depth across a voxel; see
190
- // avboit_footprint_bias
191
- let footprint = avboit_footprint_bias(&warp, fwidth(avboit_view_depth_to_virtual(&warp, fragment.view_depth)));
189
+ // avboit_footprint_depth
190
+ let footprint = avboit_footprint_depth(fragment.view_depth, fwidth(1.0 / fragment.view_depth));
192
191
  let pixels_per_unit = 1.0 / fwidth(fragment.position);
193
192
 
194
193
  let cover = contour_fill_coverage(
@@ -206,7 +205,7 @@ fn fs_main(fragment : TextAVBOITVaryings) -> TextAVBOITDrawOutput {
206
205
 
207
206
  let screen_uv = fragment.clip.xy / vec2<f32>(f32(view.width), f32(view.height));
208
207
 
209
- let transmittance = avboit_sample_transmittance(&warp, tIntegral, sLinear, screen_uv, fragment.view_depth, footprint);
208
+ let transmittance = avboit_sample_transmittance(&warp, tIntegral, sLinear, screen_uv, footprint);
210
209
 
211
210
  if (all(transmittance <= vec3<f32>(${AVBOIT_EXTINCT_TRANSMITTANCE}))) {
212
211
  // nothing this fragment contributes survives what is in front of it
@@ -231,8 +230,7 @@ fn fs_main(fragment : TextAVBOITVaryings) -> TextAVBOITDrawOutput {
231
230
  `, [
232
231
  chunk_text_avboit_varyings,
233
232
  chunk_contour_fill_coverage,
234
- chunk_avboit_view_depth_to_virtual,
235
- chunk_avboit_footprint_bias,
233
+ chunk_avboit_footprint_depth,
236
234
  chunk_avboit_sample_transmittance,
237
235
  chunk_sample_volumetrics,
238
236
  chunk_avboit_premultiplied_contribution,
@@ -27,6 +27,14 @@ export class GPUIrradianceClipmap {
27
27
  cell_size?: number;
28
28
  blend_skirt?: number;
29
29
  });
30
+ /**
31
+ * Offer the pipelines {@link graph_update} dispatches — see {@link PipelineEnquiry}. For whoever reads the
32
+ * clipmap: a frame nothing reads it in culls its build.
33
+ *
34
+ * @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
35
+ * @param {ShaderSwitchSet} shader_switches the renderer's, which the build is made for
36
+ */
37
+ enquirePipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry, shader_switches: ShaderSwitchSet): void;
30
38
  /**
31
39
  * @returns {GPUTileAtlas3D}
32
40
  */
@@ -111,7 +119,7 @@ export class GPUIrradianceClipmap {
111
119
  #private;
112
120
  }
113
121
  export type GPUTextureContext = import("../../texture/GPUTextureContext.js").GPUTextureContext;
122
+ import { ShaderSwitchSet } from "../../shader/compiler/ShaderSwitchSet.js";
114
123
  import { GPUTileAtlas3D } from "../../texture/atlas/GPUTileAtlas3D.js";
115
124
  import { IrradianceCascadePlacement } from "./IrradianceCascadePlacement.js";
116
- import { ShaderSwitchSet } from "../../shader/compiler/ShaderSwitchSet.js";
117
125
  //# sourceMappingURL=GPUIrradianceClipmap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GPUIrradianceClipmap.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.js"],"names":[],"mappings":"AAiDA;;;;;;;;;;;;;GAaG;AACH;IA2CI;;;;;;;OAOG;IACH;QAL4B,aAAa,GAA9B,MAAM;QAC6B,UAAU,GAA7C,MAAM,GAAC,UAAU,MAAM,CAAC;QACP,SAAS,GAA1B,MAAM;QACW,WAAW,GAA5B,MAAM;OA+DhB;IAED;;OAEG;IACH,4BAEC;IAED;;OAEG;IACH,gFAEC;IAED;;OAEG;IACH,mFAEC;IAED;;OAEG;IACH,yBAEC;IAED;;OAEG;IACH,4BAEC;IAED;;;OAGG;IACH,0BAEC;IAED;;OAEG;IACH,4CAEC;IAED;;OAEG;IACH,uBAEC;IAED;;;;;;;;OAQG;IACH,oBALW,MAAM,KACN,MAAM,KACN,MAAM,oBACN,eAAe,QAgFzB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH;QAXsG,KAAK,EAAhG,OAAO,8DAA8D,EAAE,UAAU;QACZ,MAAM,EAA3E,OAAO,kCAAkC,EAAE,gBAAgB;QACO,SAAS,EAA3E,OAAO,gCAAgC,EAAE,eAAe;QACxC,eAAe,EAA/B,MAAM;QACoB,eAAe,GAAzC,eAAe;QACuE,MAAM,GAA5F,OAAO,oDAAoD,EAAE,cAAc;QACuB,MAAM,EAAxG,OAAO,8DAA8D,EAAE,iBAAiB;QAErE,YAAY;QAC7B;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CA2ItD;IAED;;OAEG;IACH,gBAQC;;CACJ;gCAheY,OAAO,oCAAoC,EAAE,iBAAiB;+BAJ5C,uCAAuC;2CAmB3B,iCAAiC;gCAxB5C,0CAA0C"}
1
+ {"version":3,"file":"GPUIrradianceClipmap.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.js"],"names":[],"mappings":"AAoDA;;;;;;;;;;;;;GAaG;AACH;IAuDI;;;;;;;OAOG;IACH;QAL4B,aAAa,GAA9B,MAAM;QAC6B,UAAU,GAA7C,MAAM,GAAC,UAAU,MAAM,CAAC;QACP,SAAS,GAA1B,MAAM;QACW,WAAW,GAA5B,MAAM;OA+DhB;IAxHD;;;;;;OAMG;IACH,0BAHW,OAAO,6CAA6C,EAAE,eAAe,mBACrE,eAAe,QAKzB;IAgHD;;OAEG;IACH,4BAEC;IAED;;OAEG;IACH,gFAEC;IAED;;OAEG;IACH,mFAEC;IAED;;OAEG;IACH,yBAEC;IAED;;OAEG;IACH,4BAEC;IAED;;;OAGG;IACH,0BAEC;IAED;;OAEG;IACH,4CAEC;IAED;;OAEG;IACH,uBAEC;IAED;;;;;;;;OAQG;IACH,oBALW,MAAM,KACN,MAAM,KACN,MAAM,oBACN,eAAe,QAgFzB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH;QAXsG,KAAK,EAAhG,OAAO,8DAA8D,EAAE,UAAU;QACZ,MAAM,EAA3E,OAAO,kCAAkC,EAAE,gBAAgB;QACO,SAAS,EAA3E,OAAO,gCAAgC,EAAE,eAAe;QACxC,eAAe,EAA/B,MAAM;QACoB,eAAe,GAAzC,eAAe;QACuE,MAAM,GAA5F,OAAO,oDAAoD,EAAE,cAAc;QACuB,MAAM,EAAxG,OAAO,8DAA8D,EAAE,iBAAiB;QAErE,YAAY;QAC7B;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CA2ItD;IAED;;OAEG;IACH,gBAQC;;CACJ;gCA5eY,OAAO,oCAAoC,EAAE,iBAAiB;gCAT3C,0CAA0C;+BAK3C,uCAAuC;2CAmB3B,iCAAiC"}