@woosh/meep-engine 3.78.0 → 3.78.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/engine/graphics3/GraphicsEngine.d.ts +19 -1
- package/src/engine/graphics3/GraphicsEngine.d.ts.map +1 -1
- package/src/engine/graphics3/GraphicsEngine.js +24 -2
- package/src/engine/physics/cloth/solver/cloth_step.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/cloth_step.js +4 -1
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts +36 -2
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.js +60 -3
- package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts +119 -0
- package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts.map +1 -0
- package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.js +563 -0
- package/src/generation/wfc/GRID_WFC_PIECE_SOCKET_PREFIX.d.ts +11 -0
- package/src/generation/wfc/GRID_WFC_PIECE_SOCKET_PREFIX.d.ts.map +1 -0
- package/src/generation/wfc/GRID_WFC_PIECE_SOCKET_PREFIX.js +10 -0
- package/src/generation/wfc/GridWFCCompiledTileSet.d.ts +123 -0
- package/src/generation/wfc/GridWFCCompiledTileSet.d.ts.map +1 -0
- package/src/generation/wfc/GridWFCCompiledTileSet.js +355 -0
- package/src/generation/wfc/GridWFCEdge.d.ts +13 -0
- package/src/generation/wfc/GridWFCEdge.d.ts.map +1 -0
- package/src/generation/wfc/GridWFCEdge.js +14 -0
- package/src/generation/wfc/GridWFCTileSet.d.ts +120 -0
- package/src/generation/wfc/GridWFCTileSet.d.ts.map +1 -0
- package/src/generation/wfc/GridWFCTileSet.js +275 -0
- package/src/shade/device/pipeline/ComputePipelineManager.d.ts +8 -0
- package/src/shade/device/pipeline/ComputePipelineManager.d.ts.map +1 -1
- package/src/shade/device/pipeline/ComputePipelineManager.js +18 -0
- package/src/shade/device/pipeline/RenderPipelineManager.d.ts +8 -0
- package/src/shade/device/pipeline/RenderPipelineManager.d.ts.map +1 -1
- package/src/shade/device/pipeline/RenderPipelineManager.js +17 -0
- package/src/shade/playground/avboit_footprint/index.html +20 -0
- package/src/shade/playground/avboit_footprint/main.d.ts +2 -0
- package/src/shade/playground/avboit_footprint/main.d.ts.map +1 -0
- package/src/shade/playground/avboit_footprint/main.js +428 -0
- package/src/shade/playground/probe_clipmap/main.d.ts.map +1 -1
- package/src/shade/playground/probe_clipmap/main.js +7 -3
- package/src/shade/playground/screen_probes/main.d.ts.map +1 -1
- package/src/shade/playground/screen_probes/main.js +7 -3
- package/src/shade/renderer/Renderer.d.ts +18 -8
- package/src/shade/renderer/Renderer.d.ts.map +1 -1
- package/src/shade/renderer/Renderer.js +201 -16
- package/src/shade/renderer/RendererConfiguration.d.ts +95 -0
- package/src/shade/renderer/RendererConfiguration.d.ts.map +1 -0
- package/src/shade/renderer/RendererConfiguration.js +119 -0
- package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.d.ts +8 -0
- package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.js +34 -0
- package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.d.ts +7 -0
- package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/surface/GPUMeshSurfaceCaches.js +15 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +10 -2
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.js +37 -3
- package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts +6 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js +31 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.d.ts +7 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.js +20 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts +8 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js +14 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.d.ts +7 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.js +13 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.d.ts +6 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.js +9 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.d.ts +11 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.js +71 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.d.ts +6 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.js +9 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.d.ts +6 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.js +9 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.d.ts +6 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.js +13 -0
- package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts +9 -0
- package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js +47 -0
- package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts +6 -0
- package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js +17 -0
- package/src/shade/renderer/hair/GPUHairSystem.d.ts.map +1 -1
- package/src/shade/renderer/hair/GPUHairSystem.js +28 -9
- package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts +50 -9
- package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts.map +1 -1
- package/src/shade/renderer/hair/HAIR_SIMULATION.js +71 -11
- package/src/shade/renderer/hair/shader_hair_simulate.d.ts +22 -16
- package/src/shade/renderer/hair/shader_hair_simulate.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_simulate.js +151 -78
- package/src/shade/renderer/particles/GPUParticleSystem.d.ts +8 -0
- package/src/shade/renderer/particles/GPUParticleSystem.d.ts.map +1 -1
- package/src/shade/renderer/particles/GPUParticleSystem.js +20 -1
- package/src/shade/renderer/particles/bounds/graph_particle_bounds.d.ts +6 -0
- package/src/shade/renderer/particles/bounds/graph_particle_bounds.d.ts.map +1 -1
- package/src/shade/renderer/particles/bounds/graph_particle_bounds.js +11 -1
- package/src/shade/renderer/particles/coherence/graph_particle_bucket.d.ts +6 -0
- package/src/shade/renderer/particles/coherence/graph_particle_bucket.d.ts.map +1 -1
- package/src/shade/renderer/particles/coherence/graph_particle_bucket.js +15 -0
- package/src/shade/renderer/particles/graph_particles.d.ts +8 -0
- package/src/shade/renderer/particles/graph_particles.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph_particles.js +28 -3
- package/src/shade/renderer/particles/graph_particles_avboit.d.ts +7 -0
- package/src/shade/renderer/particles/graph_particles_avboit.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph_particles_avboit.js +14 -0
- package/src/shade/renderer/particles/shaders/shader_particle_avboit_draw.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_avboit_draw.js +5 -7
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts +7 -0
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts.map +1 -1
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.js +15 -0
- package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.d.ts +6 -0
- package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.d.ts.map +1 -1
- package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.js +16 -2
- package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.d.ts +6 -0
- package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.d.ts.map +1 -1
- package/src/shade/renderer/path_tracer/accumulating/graph_float32rgba_to_float16rgba.js +9 -0
- package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.d.ts +11 -0
- package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.d.ts.map +1 -1
- package/src/shade/renderer/path_tracer/accumulating/graph_flood_fill.js +10 -0
- package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts +6 -0
- package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.js +10 -1
- package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts +7 -0
- package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.js +21 -0
- package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.d.ts +7 -0
- package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/dof/raymarch/DepthOfField.js +11 -1
- package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.d.ts +9 -0
- package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/dof/raymarch/graph_postprocess_dof.js +29 -0
- package/src/shade/renderer/postprocess/motion_blur/MotionBlur.d.ts +6 -0
- package/src/shade/renderer/postprocess/motion_blur/MotionBlur.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/motion_blur/MotionBlur.js +13 -1
- package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.d.ts +6 -0
- package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/motion_blur/graph_postprocess_motion_blur.js +11 -0
- package/src/shade/renderer/postprocess/nss/NSS.d.ts +9 -0
- package/src/shade/renderer/postprocess/nss/NSS.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/nss/NSS.js +33 -18
- package/src/shade/renderer/postprocess/ssr/SSR.d.ts +8 -0
- package/src/shade/renderer/postprocess/ssr/SSR.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/SSR.js +42 -2
- package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.d.ts +6 -0
- package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/ssr_graph_denoise_tiles.js +10 -0
- package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.d.ts +6 -0
- package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/ssr_graph_prefilter_color.js +11 -0
- package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.d.ts +8 -0
- package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/bucket/prepare_meshlet_draw_commands_by_material.js +27 -3
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.d.ts +6 -0
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSettings.js +10 -0
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.d.ts +5 -4
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.js +5 -4
- package/src/shade/renderer/rasterize/native/avboit/AVBOIT_CONSTANTS.d.ts +3 -3
- package/src/shade/renderer/rasterize/native/avboit/AVBOIT_CONSTANTS.js +3 -3
- package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.js +5 -7
- package/src/shade/renderer/rasterize/native/avboit/avboit_unlit_draw.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/avboit_unlit_draw.js +5 -7
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.d.ts +34 -0
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_depth.js +42 -0
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.d.ts +5 -4
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_integral_depth_coordinate.js +8 -7
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.d.ts +2 -2
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_sample_transmittance.js +4 -5
- package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.d.ts +9 -0
- package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.js +18 -0
- package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.d.ts +9 -0
- package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.js +15 -0
- package/src/shade/renderer/restir/di/ReSTIRDI.d.ts +6 -0
- package/src/shade/renderer/restir/di/ReSTIRDI.d.ts.map +1 -1
- package/src/shade/renderer/restir/di/ReSTIRDI.js +10 -1
- package/src/shade/renderer/restir/di/graph_restir_di.d.ts +9 -0
- package/src/shade/renderer/restir/di/graph_restir_di.d.ts.map +1 -1
- package/src/shade/renderer/restir/di/graph_restir_di.js +19 -1
- package/src/shade/renderer/restir/di/graph_restir_di_denoise.d.ts +6 -0
- package/src/shade/renderer/restir/di/graph_restir_di_denoise.d.ts.map +1 -1
- package/src/shade/renderer/restir/di/graph_restir_di_denoise.js +9 -0
- package/src/shade/renderer/scene/movers/graph_scene_movers.d.ts +7 -0
- package/src/shade/renderer/scene/movers/graph_scene_movers.d.ts.map +1 -1
- package/src/shade/renderer/scene/movers/graph_scene_movers.js +11 -0
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts +10 -0
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +25 -1
- package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.d.ts +7 -0
- package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.d.ts.map +1 -1
- package/src/shade/renderer/shadow/vsm/graph_vsm_feedback.js +14 -0
- package/src/shade/renderer/text/shaders/shader_text_avboit.d.ts.map +1 -1
- package/src/shade/renderer/text/shaders/shader_text_avboit.js +5 -7
- package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts +9 -1
- package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.js +16 -1
- package/src/shade/renderer/water/shader_water_avboit.d.ts.map +1 -1
- package/src/shade/renderer/water/shader_water_avboit.js +16 -13
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.d.ts +0 -33
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.d.ts.map +0 -1
- package/src/shade/renderer/rasterize/native/avboit/chunk_avboit_footprint_bias.js +0 -45
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @typedef {import("../../GraphicsContext.js").GraphicsContext} GraphicsContext
|
|
4
4
|
* @typedef {import("../../view/GPUViewContext.js").GPUViewContext} GPUViewContext
|
|
5
5
|
* @typedef {import("./ProbeClipmapSettings.js").ProbeClipmapSettings} ProbeClipmapSettings
|
|
6
|
-
* @typedef {import("./brick/GPUSceneBrickClipmap.js").GPUSceneBrickClipmap} GPUSceneBrickClipmap
|
|
7
6
|
* @typedef {import("./ProbeClipmapSceneHolds.js").ProbeClipmapSceneHolds} ProbeClipmapSceneHolds
|
|
8
7
|
*/
|
|
9
8
|
/**
|
|
@@ -74,6 +73,16 @@ export class GPUProbeClipmapGI {
|
|
|
74
73
|
lookup: number;
|
|
75
74
|
data: number;
|
|
76
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* Offer the pipelines a frame of the mode dispatches under `settings` — see {@link PipelineEnquiry}: the
|
|
78
|
+
* scene's brick clipmap and the surface caches its material reads, both clipmaps' probes, and their wants. The
|
|
79
|
+
* passes that light the frame from the probes are the renderer's to offer, and the mode's debug views are left
|
|
80
|
+
* to the frame that first shows one.
|
|
81
|
+
*
|
|
82
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
83
|
+
* @param {ProbeClipmapSettings} settings the renderer's, as {@link graph_update} will be given them
|
|
84
|
+
*/
|
|
85
|
+
enquirePipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry, settings: ProbeClipmapSettings): void;
|
|
77
86
|
/**
|
|
78
87
|
* Take a frame of the mode: make the clipmaps for `view` and the structure `settings` describe,
|
|
79
88
|
* unless they already are, hold the scene's geometry caches and record their bake. Allocates nothing
|
|
@@ -205,7 +214,6 @@ export type FrameGraph = import("../../../../engine/graphics/render/frame_graph/
|
|
|
205
214
|
export type GraphicsContext = import("../../GraphicsContext.js").GraphicsContext;
|
|
206
215
|
export type GPUViewContext = import("../../view/GPUViewContext.js").GPUViewContext;
|
|
207
216
|
export type ProbeClipmapSettings = import("./ProbeClipmapSettings.js").ProbeClipmapSettings;
|
|
208
|
-
export type GPUSceneBrickClipmap = import("./brick/GPUSceneBrickClipmap.js").GPUSceneBrickClipmap;
|
|
209
217
|
export type ProbeClipmapSceneHolds = import("./ProbeClipmapSceneHolds.js").ProbeClipmapSceneHolds;
|
|
210
218
|
import { GPUBrickClipmap } from "./brick/GPUBrickClipmap.js";
|
|
211
219
|
import { GPUProbeClipmap } from "./probe/GPUProbeClipmap.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPUProbeClipmapGI.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GPUProbeClipmapGI.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.js"],"names":[],"mappings":"AAkCA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;IAuUI;;;;OAIG;IACH,oDAJW,eAAe,YACf,oBAAoB,GAClB,OAAO,CAUnB;IA5QD;;OAEG;IACH,sBAFW,eAAe,EAMzB;IAED;;OAEG;IACH,qCAEC;IAED;;OAEG;IACH,qCAEC;IAED;;OAEG;IACH,mCAEC;IAED;;OAEG;IACH,0EAEC;IAED;;;OAGG;IACH,iCAEC;IAED;;;OAGG;IACH,qBAEC;IAED;;;OAGG;IACH;gBAHsB,MAAM;cAAQ,MAAM;MAKzC;IAED;;;;;;;;OAQG;IACH,0BAHW,OAAO,6CAA6C,EAAE,eAAe,YACrE,oBAAoB,QAkB9B;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH;QAZ+B,KAAK,EAAzB,UAAU;QACc,IAAI,EAA5B,cAAc;QACgB,QAAQ,EAAtC,oBAAoB;QACJ,KAAK,EAArB,MAAM;QACU,MAAM,EAAtB,MAAM;QACK,IAAI;QACE,MAAM,GAAvB,MAAM;QAEU,QAAQ,EAAxB,MAAM;aAkHhB;IAsDD;;;OAGG;IACH,0BAEC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH;QAT+B,KAAK,EAAzB,UAAU;QACM,KAAK,EAArB,MAAM;QACU,MAAM,EAAtB,MAAM;QAEW,cAAc,GAA/B,MAAM;QACY,SAAS,GAA3B,OAAO;QACY,MAAM;QACE,UAAU,EAArC,UAAU,MAAM,CAAC;aAmC3B;IAED;;;;;;;;;;;;;;OAcG;IACH;QAN+B,KAAK,EAAzB,UAAU;QACwD,KAAK,EAAvE,OAAO,gCAAgC,EAAE,eAAe;QACxC,MAAM,EAAtB,MAAM;QACU,kBAAkB,EAAlC,MAAM;QACU,wBAAwB,EAAxC,MAAM;aAiBhB;IAED;;;;;;;;;OASG;IACH,4CAUC;IAwDD;;;;;;;;;;;;;;;;OAgBG;IACH;QAR+B,KAAK,EAAzB,UAAU;QACc,IAAI,EAA5B,cAAc;QACgB,QAAQ,EAAtC,oBAAoB;QACF,UAAU,EAA5B,MAAM,EAAE;QACQ,QAAQ;QACtB,MAAM,CA8ClB;IA4DD;;;;OAIG;IACH,gBAsBC;IAED,gBAcC;;CACJ;yBAlsBY,OAAO,8DAA8D,EAAE,UAAU;8BACjF,OAAO,0BAA0B,EAAE,eAAe;6BAClD,OAAO,8BAA8B,EAAE,cAAc;mCACrD,OAAO,2BAA2B,EAAE,oBAAoB;qCACxD,OAAO,6BAA6B,EAAE,sBAAsB;gCA7BzC,4BAA4B;gCAa5B,4BAA4B;iCAS3B,gCAAgC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { assert } from "../../../../core/assert.js";
|
|
2
2
|
import { ceilPowerOfTwo } from "../../../../core/binary/operations/ceilPowerOfTwo.js";
|
|
3
3
|
import { BufferDescriptor } from "../../../descriptor/buffer/BufferDescriptor.js";
|
|
4
|
-
import {
|
|
4
|
+
import { GPUMeshSurfaceCaches } from "../../geometry/sdf/surface/GPUMeshSurfaceCaches.js";
|
|
5
|
+
import {
|
|
6
|
+
enquire_build_world_light_clusters_pipelines,
|
|
7
|
+
graph_build_world_light_clusters
|
|
8
|
+
} from "../../light/world_cluster/graph_build_world_light_clusters.js";
|
|
5
9
|
import { CLIPMAP_LEVEL_ARRAY } from "../../shader/chunk/clipmap/CLIPMAP_LEVEL_STRUCT.js";
|
|
6
10
|
import { graph_import_buffer } from "../../shader/graph/graph_import_buffer.js";
|
|
7
11
|
import { GPUBrickClipmap } from "./brick/GPUBrickClipmap.js";
|
|
12
|
+
import { GPUSceneBrickClipmap } from "./brick/GPUSceneBrickClipmap.js";
|
|
8
13
|
import { graph_probe_clipmap_debug_brick_clipmap } from "./debug/graph_probe_clipmap_debug_brick_clipmap.js";
|
|
9
14
|
import { graph_probe_clipmap_debug_indirect } from "./debug/graph_probe_clipmap_debug_indirect.js";
|
|
10
15
|
import {
|
|
@@ -17,7 +22,10 @@ import { ProbeClipmapDebugView } from "./debug/ProbeClipmapDebugView.js";
|
|
|
17
22
|
import { PROBE_RECORD_STRUCT } from "./probe/chunk_probe_clipmap.js";
|
|
18
23
|
import { PROBE_SAMPLING_STRUCT } from "./probe/chunk_probe_clipmap_pick.js";
|
|
19
24
|
import { GPUProbeClipmap } from "./probe/GPUProbeClipmap.js";
|
|
20
|
-
import {
|
|
25
|
+
import {
|
|
26
|
+
enquire_probe_clipmap_want_meshlets_pipelines,
|
|
27
|
+
graph_probe_clipmap_want_meshlets
|
|
28
|
+
} from "./probe/graph_probe_clipmap_want_meshlets.js";
|
|
21
29
|
import { PROBE_DEPTH_TEXEL_RAYS, PROBE_RAY_CASCADE_MASK, PROBE_TEXEL_RAYS } from "./probe/PROBE_CLIPMAP.js";
|
|
22
30
|
import { ProbeClipmapHitWants } from "./probe/ProbeClipmapHitWants.js";
|
|
23
31
|
import { ProbeClipmapIndirectLobe } from "./probe/ProbeClipmapIndirectLobe.js";
|
|
@@ -29,7 +37,6 @@ import { GPUBrickMaterial } from "./material/GPUBrickMaterial.js";
|
|
|
29
37
|
* @typedef {import("../../GraphicsContext.js").GraphicsContext} GraphicsContext
|
|
30
38
|
* @typedef {import("../../view/GPUViewContext.js").GPUViewContext} GPUViewContext
|
|
31
39
|
* @typedef {import("./ProbeClipmapSettings.js").ProbeClipmapSettings} ProbeClipmapSettings
|
|
32
|
-
* @typedef {import("./brick/GPUSceneBrickClipmap.js").GPUSceneBrickClipmap} GPUSceneBrickClipmap
|
|
33
40
|
* @typedef {import("./ProbeClipmapSceneHolds.js").ProbeClipmapSceneHolds} ProbeClipmapSceneHolds
|
|
34
41
|
*/
|
|
35
42
|
|
|
@@ -189,6 +196,33 @@ export class GPUProbeClipmapGI {
|
|
|
189
196
|
return this.#clusters;
|
|
190
197
|
}
|
|
191
198
|
|
|
199
|
+
/**
|
|
200
|
+
* Offer the pipelines a frame of the mode dispatches under `settings` — see {@link PipelineEnquiry}: the
|
|
201
|
+
* scene's brick clipmap and the surface caches its material reads, both clipmaps' probes, and their wants. The
|
|
202
|
+
* passes that light the frame from the probes are the renderer's to offer, and the mode's debug views are left
|
|
203
|
+
* to the frame that first shows one.
|
|
204
|
+
*
|
|
205
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
206
|
+
* @param {ProbeClipmapSettings} settings the renderer's, as {@link graph_update} will be given them
|
|
207
|
+
*/
|
|
208
|
+
enquirePipelines(enquiry, settings) {
|
|
209
|
+
assert.defined(settings, 'settings');
|
|
210
|
+
|
|
211
|
+
GPUSceneBrickClipmap.enquirePipelines(enquiry);
|
|
212
|
+
GPUMeshSurfaceCaches.enquirePipelines(enquiry);
|
|
213
|
+
GPUBrickMaterial.enquirePipelines(enquiry);
|
|
214
|
+
|
|
215
|
+
enquire_build_world_light_clusters_pipelines(enquiry);
|
|
216
|
+
|
|
217
|
+
ProbeClipmapHitWants.enquirePipelines(enquiry);
|
|
218
|
+
ProbeClipmapScreenWants.enquirePipelines(enquiry);
|
|
219
|
+
enquire_probe_clipmap_want_meshlets_pipelines(enquiry);
|
|
220
|
+
|
|
221
|
+
// the world cache's, which re-samples nothing, and the frustum's
|
|
222
|
+
GPUProbeClipmap.enquirePipelines(enquiry, false, false);
|
|
223
|
+
GPUProbeClipmap.enquirePipelines(enquiry, settings.history_resampling, settings.ray_resampling);
|
|
224
|
+
}
|
|
225
|
+
|
|
192
226
|
/**
|
|
193
227
|
* Take a frame of the mode: make the clipmaps for `view` and the structure `settings` describe,
|
|
194
228
|
* unless they already are, hold the scene's geometry caches and record their bake. Allocates nothing
|
|
@@ -311,6 +311,12 @@ export class ProbeClipmapSettings {
|
|
|
311
311
|
* @returns {ProbeClipmapDebugView}
|
|
312
312
|
*/
|
|
313
313
|
get debug_view(): number;
|
|
314
|
+
/**
|
|
315
|
+
* Take every field's value from `other`, which is left as it was. The two share nothing afterwards.
|
|
316
|
+
*
|
|
317
|
+
* @param {ProbeClipmapSettings} other
|
|
318
|
+
*/
|
|
319
|
+
copy(other: ProbeClipmapSettings): void;
|
|
314
320
|
#private;
|
|
315
321
|
}
|
|
316
322
|
//# sourceMappingURL=ProbeClipmapSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProbeClipmapSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;GAgBG;AACH;IAaI;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAyBD;;OAEG;IACH,gCAKC;IAlBD;;;;;OAKG;IACH,+BAEC;IAuBD;;OAEG;IACH,kCAIC;IAhBD;;;;OAIG;IACH,iCAEC;IAuBD;;OAEG;IACH,mCAKC;IAlBD;;;;;OAKG;IACH,kCAEC;IAyBD;;;OAGG;IACH,mCAMC;IArBD;;;;;;OAMG;IACH,kCAEC;IAsCD;;;OAGG;IACH,oCAKC;IA/BD;;;;;;;;;;;;;;;;;OAiBG;IACH,mCAEC;IAsCD;;;OAGG;IACH,mCAIC;IA/BD;;;;;;;;;;;;;;;;;;OAkBG;IACH,kCAEC;IAuBD;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAyBD;;OAEG;IACH,6BAKC;IAlBD;;;;;OAKG;IACH,4BAEC;IAuBD;;;OAGG;IACH,mCAMC;IAnBD;;;;OAIG;IACH,kCAEC;IAyBD;;OAEG;IACH,gCAKC;IAjBD;;;;OAIG;IACH,+BAEC;IAuBD;;;;OAIG;IACH,8BAKC;IAnBD;;;;OAIG;IACH,6BAEC;IAyBD;;;OAGG;IACH,0BAIC;IAjBD;;;;OAIG;IACH,yBAEC;IAYD;;;;;;OAMG;IACH,iCAEC;IAED;;;OAGG;IACH,+BAEC;IAeD;;;OAGG;IACH,yCAIC;IAnBD;;;;;;OAMG;IACH,wCAEC;IAuBD;;OAEG;IACH,+CAMC;IAlBD;;;;OAIG;IACH,8CAEC;IAwBD;;OAEG;IACH,4CAKC;IAjBD;;;;OAIG;IACH,2CAEC;IAuBD;;;OAGG;IACH,0CAKC;IAlBD;;;;OAIG;IACH,yCAEC;IA2BD;;OAEG;IACH,+BAKC;IApBD;;;;;;;OAOG;IACH,8BAEC;IAyBD;;OAEG;IACH,mCAIC;IAlBD;;;;;;OAMG;IACH,kCAEC;IAwBD;;OAEG;IACH,+BAIC;IAlBD;;;;;;OAMG;IACH,8BAEC;IAsBD;;OAEG;IACH,0BAIC;IAhBD;;;;OAIG;IACH,yBAEC;;
|
|
1
|
+
{"version":3,"file":"ProbeClipmapSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;GAgBG;AACH;IAaI;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAyBD;;OAEG;IACH,gCAKC;IAlBD;;;;;OAKG;IACH,+BAEC;IAuBD;;OAEG;IACH,kCAIC;IAhBD;;;;OAIG;IACH,iCAEC;IAuBD;;OAEG;IACH,mCAKC;IAlBD;;;;;OAKG;IACH,kCAEC;IAyBD;;;OAGG;IACH,mCAMC;IArBD;;;;;;OAMG;IACH,kCAEC;IAsCD;;;OAGG;IACH,oCAKC;IA/BD;;;;;;;;;;;;;;;;;OAiBG;IACH,mCAEC;IAsCD;;;OAGG;IACH,mCAIC;IA/BD;;;;;;;;;;;;;;;;;;OAkBG;IACH,kCAEC;IAuBD;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAyBD;;OAEG;IACH,6BAKC;IAlBD;;;;;OAKG;IACH,4BAEC;IAuBD;;;OAGG;IACH,mCAMC;IAnBD;;;;OAIG;IACH,kCAEC;IAyBD;;OAEG;IACH,gCAKC;IAjBD;;;;OAIG;IACH,+BAEC;IAuBD;;;;OAIG;IACH,8BAKC;IAnBD;;;;OAIG;IACH,6BAEC;IAyBD;;;OAGG;IACH,0BAIC;IAjBD;;;;OAIG;IACH,yBAEC;IAYD;;;;;;OAMG;IACH,iCAEC;IAED;;;OAGG;IACH,+BAEC;IAeD;;;OAGG;IACH,yCAIC;IAnBD;;;;;;OAMG;IACH,wCAEC;IAuBD;;OAEG;IACH,+CAMC;IAlBD;;;;OAIG;IACH,8CAEC;IAwBD;;OAEG;IACH,4CAKC;IAjBD;;;;OAIG;IACH,2CAEC;IAuBD;;;OAGG;IACH,0CAKC;IAlBD;;;;OAIG;IACH,yCAEC;IA2BD;;OAEG;IACH,+BAKC;IApBD;;;;;;;OAOG;IACH,8BAEC;IAyBD;;OAEG;IACH,mCAIC;IAlBD;;;;;;OAMG;IACH,kCAEC;IAwBD;;OAEG;IACH,+BAIC;IAlBD;;;;;;OAMG;IACH,8BAEC;IAsBD;;OAEG;IACH,0BAIC;IAhBD;;;;OAIG;IACH,yBAEC;IAWD;;;;OAIG;IACH,YAFW,oBAAoB,QA0B9B;;CACJ"}
|
|
@@ -570,4 +570,35 @@ export class ProbeClipmapSettings {
|
|
|
570
570
|
|
|
571
571
|
this.#debug_view = v;
|
|
572
572
|
}
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Take every field's value from `other`, which is left as it was. The two share nothing afterwards.
|
|
576
|
+
*
|
|
577
|
+
* @param {ProbeClipmapSettings} other
|
|
578
|
+
*/
|
|
579
|
+
copy(other) {
|
|
580
|
+
this.#brick_cascade_count = other.brick_cascade_count;
|
|
581
|
+
this.#brick_cascade_resolution = other.brick_cascade_resolution;
|
|
582
|
+
this.#brick_voxel_size = other.brick_voxel_size;
|
|
583
|
+
this.#brick_build_budget = other.brick_build_budget;
|
|
584
|
+
this.#mesh_sdf_voxel_size = other.mesh_sdf_voxel_size;
|
|
585
|
+
this.#mesh_sdf_max_bricks = other.mesh_sdf_max_bricks;
|
|
586
|
+
this.#mesh_sdf_bake_budget = other.mesh_sdf_bake_budget;
|
|
587
|
+
this.#surface_bake_budget = other.surface_bake_budget;
|
|
588
|
+
this.#probe_cascade_count = other.probe_cascade_count;
|
|
589
|
+
this.#probe_cascade_resolution = other.probe_cascade_resolution;
|
|
590
|
+
this.#probe_spacing = other.probe_spacing;
|
|
591
|
+
this.#radiance_resolution = other.radiance_resolution;
|
|
592
|
+
this.#depth_resolution = other.depth_resolution;
|
|
593
|
+
this.#rays_per_probe = other.rays_per_probe;
|
|
594
|
+
this.#ray_budget = other.ray_budget;
|
|
595
|
+
this.#world_cache_spacing_shift = other.world_cache_spacing_shift;
|
|
596
|
+
this.#world_cache_radiance_resolution = other.world_cache_radiance_resolution;
|
|
597
|
+
this.#world_cache_depth_resolution = other.world_cache_depth_resolution;
|
|
598
|
+
this.#world_cache_rays_per_probe = other.world_cache_rays_per_probe;
|
|
599
|
+
this.#response_frames = other.response_frames;
|
|
600
|
+
this.#history_resampling = other.history_resampling;
|
|
601
|
+
this.#ray_resampling = other.ray_resampling;
|
|
602
|
+
this.#debug_view = other.debug_view;
|
|
603
|
+
}
|
|
573
604
|
}
|
|
@@ -63,6 +63,13 @@
|
|
|
63
63
|
* the new slots pushed. Nothing shrinks.
|
|
64
64
|
*/
|
|
65
65
|
export class GPUBrickClipmap {
|
|
66
|
+
/**
|
|
67
|
+
* Offer the pipelines a brick clipmap is scrolled, built and rebuilt with — see {@link PipelineEnquiry}. What
|
|
68
|
+
* its providers and material writers dispatch is theirs to offer.
|
|
69
|
+
*
|
|
70
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
71
|
+
*/
|
|
72
|
+
static enquirePipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
66
73
|
/**
|
|
67
74
|
* Slots a clipmap of these cascades starts with, `2·N²·C`: a ground plane two cells thick through every
|
|
68
75
|
* cascade (§7.10). What a payload of a slot each is made with, before its clipmap exists.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPUBrickClipmap.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.js"],"names":[],"mappings":"AA8FA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;;GAGG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;
|
|
1
|
+
{"version":3,"file":"GPUBrickClipmap.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/brick/GPUBrickClipmap.js"],"names":[],"mappings":"AA8FA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;;GAGG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;IACI;;;;;OAKG;IACH,iCAFW,OAAO,gDAAgD,EAAE,eAAe,QAclF;IA4QD;;;;;;;OAOG;IACH,uCAJW,MAAM,cACN,MAAM,GACJ,MAAM,CAIlB;IAnHD;;;;;;;;OAQG;IACH;QAN2B,aAAa,EAA7B,MAAM;QACU,UAAU,EAA1B,MAAM;QAGU,UAAU,EAA1B,MAAM;OAgGhB;IAxQD;;;OAGG;IACH,wBAHU,MAAM,CAGF;IAEd;;;;OAIG;IACH,qBAHU,MAAM,CAGL;IAEX;;;;OAIG;IACH,qBAHU,MAAM,CAGL;IAoQX;;OAEG;IACH,4BAEC;IAED;;OAEG;IACH,4BAEC;IAED;;OAEG;IACH,4BAEC;IAED;;;;OAIG;IACH,wBAEC;IAED;;;;;;;OAOG;IACH,mCAQC;IAED;;;;;;OAMG;IACH,0BAEC;IAED;;;OAGG;IACH,uBAEC;IAED;;;;OAIG;IACH,gBAJW,MAAM,QACN,MAAM,GACJ,MAAM,CAIlB;IAED;;;OAGG;IACH,mBAHW,MAAM,GACJ,MAAM,CAIlB;IAED;;;;;;OAMG;IACH,sBAFW,UAAU,MAAM,CAAC,QAiB3B;IAED;;;OAGG;IACH,oBAHW,oBAAoB,GAClB,OAAO,CAMnB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH;QAb+B,KAAK,EAAzB,UAAU;QACM,CAAC,EAAjB,MAAM;QACU,CAAC,EAAjB,MAAM;QACU,CAAC,EAAjB,MAAM;QACU,MAAM,EAAtB,MAAM;QAC4B,SAAS,EAA3C,UAAU,aAAa,CAAC;QACiB,gBAAgB,GAAzD,UAAU,mBAAmB,CAAC;QACA,KAAK,EAAnC,eAAe,GAAC,IAAI;QACH,MAAM,GAAvB,MAAM;QAEJ,MAAM,CAiHlB;IAgWD,gBAcC;;CACJ;mCAhgCY,OAAO,4BAA4B,EAAE,oBAAoB;yBACzD,OAAO,iEAAiE,EAAE,UAAU;8BACpF,OAAO,mCAAmC,EAAE,eAAe;;;;;;;WA+C1D,UAAU;;;;WACV,MAAM;;;;;;UACN,MAAM;;;;;aAGN,MAAM;;;;sBAEN,MAAM;;;;;mBAEN,MAAM;;;;gBACN,MAAM;mBACN,MAAM;;;;;;;;;;WAGN,eAAe;;;;;;aAEf,eAAe;;;+BAON,UAAU,QAAE,oBAAoB,KAAG,IAAI;;;;;;;;;iCAUvC,UAAU,QAAE,oBAAoB,KAAG,IAAI;;+BA3G/B,0CAA0C"}
|
|
@@ -160,6 +160,26 @@ const SCROLL_BOXES_PER_CASCADE = 3;
|
|
|
160
160
|
* the new slots pushed. Nothing shrinks.
|
|
161
161
|
*/
|
|
162
162
|
export class GPUBrickClipmap {
|
|
163
|
+
/**
|
|
164
|
+
* Offer the pipelines a brick clipmap is scrolled, built and rebuilt with — see {@link PipelineEnquiry}. What
|
|
165
|
+
* its providers and material writers dispatch is theirs to offer.
|
|
166
|
+
*
|
|
167
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
168
|
+
*/
|
|
169
|
+
static enquirePipelines(enquiry) {
|
|
170
|
+
enquiry.compute.push(shader_slot_stack_fill.pipeline);
|
|
171
|
+
enquiry.compute.push(shader_slot_stack_push_range.pipeline);
|
|
172
|
+
enquiry.compute.push(shader_brick_clipmap_scroll.pipeline);
|
|
173
|
+
enquiry.compute.push(shader_brick_clipmap_take.pipeline);
|
|
174
|
+
enquiry.compute.push(shader_brick_clipmap_clear.pipeline);
|
|
175
|
+
enquiry.compute.push(shader_brick_clipmap_free.pipeline);
|
|
176
|
+
enquiry.compute.push(shader_brick_clipmap_store.pipeline);
|
|
177
|
+
enquiry.compute.push(shader_brick_clipmap_coarse.pipeline);
|
|
178
|
+
enquiry.compute.push(shader_brick_clipmap_movers_command.pipeline);
|
|
179
|
+
enquiry.compute.push(shader_brick_clipmap_movers.pipeline);
|
|
180
|
+
enquiry.compute.push(shader_brick_clipmap_requeue.pipeline);
|
|
181
|
+
}
|
|
182
|
+
|
|
163
183
|
/**
|
|
164
184
|
* @type {number}
|
|
165
185
|
* @readonly
|
package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts
CHANGED
|
@@ -27,6 +27,14 @@
|
|
|
27
27
|
* so the fields are there when someone holds it again (D28); the surface caches go, and are baked again.
|
|
28
28
|
*/
|
|
29
29
|
export class GPUSceneBrickClipmap {
|
|
30
|
+
/**
|
|
31
|
+
* Offer the pipelines a scene's brick clipmap is kept with while something holds it — see
|
|
32
|
+
* {@link PipelineEnquiry}: the bake of the geometries' fields, the clipmap's build, and its cells filled from
|
|
33
|
+
* those fields. For a holder to offer; a clipmap nothing holds dispatches none.
|
|
34
|
+
*
|
|
35
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
36
|
+
*/
|
|
37
|
+
static enquirePipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
30
38
|
/**
|
|
31
39
|
* @param {GraphicsContext} graphics
|
|
32
40
|
* @param {GPUSceneContext} scene
|
package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPUSceneBrickClipmap.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GPUSceneBrickClipmap.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js"],"names":[],"mappings":"AAmCA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH;IACI;;;;;;OAMG;IACH,iCAFW,OAAO,gDAAgD,EAAE,eAAe,QAMlF;IAmED;;;OAGG;IACH,sBAHW,eAAe,SACf,eAAe,EAQzB;IAED;;;OAGG;IACH,oBAEC;IAED;;OAEG;IACH,qCAEC;IAED;;OAEG;IACH,oCAEC;IAED;;;OAGG;IACH,qBAEC;IAED;;;OAGG;IACH,4BAEC;IAED;;;OAGG;IACH,0BAEC;IAED;;;;;;;OAOG;IACH,mCAUC;IAED;;;OAGG;IACH,2BAKC;IAED;;;;;;;;OAQG;IACH,6BAHW,UAAU,GAAC,IAAI,GACb,OAAO,CAkBnB;IAED;;;;;;OAMG;IACH,4BAFW,mBAAmB,QAU7B;IAED;;;OAGG;IACH,+BAHW,mBAAmB,GACjB,OAAO,CAYnB;IAED;;;;;OAKG;IACH,uBAFW,aAAa,QASvB;IAED;;;OAGG;IACH,0BAHW,aAAa,GACX,OAAO,CAanB;IAED;;;;;;;;;;;;;;;OAeG;IACH;QAV+B,KAAK,EAAzB,UAAU;QACc,IAAI,EAA5B,cAAc;QACgB,QAAQ,EAAtC,oBAAoB;QACH,MAAM,GAAvB,MAAM;QAEY,QAAQ,GAA1B,OAAO;QAEL,MAAM,CA+ElB;IAyGD,gBAqBC;;CACJ;yBAphBY,OAAO,iEAAiE,EAAE,UAAU;8BACpF,OAAO,6BAA6B,EAAE,eAAe;8BACrD,OAAO,mCAAmC,EAAE,eAAe;6BAC3D,OAAO,iCAAiC,EAAE,cAAc;mCACxD,OAAO,4BAA4B,EAAE,oBAAoB;4BACzD,OAAO,sBAAsB,EAAE,aAAa;kCAC5C,OAAO,sBAAsB,EAAE,mBAAmB;gCAV/B,sBAAsB;uCADf,8BAA8B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { assert } from "../../../../../core/assert.js";
|
|
2
2
|
import { BufferDescriptor } from "../../../../descriptor/buffer/BufferDescriptor.js";
|
|
3
|
+
import { GPUGeometrySDFManager } from "../../../geometry/sdf/GPUGeometrySDFManager.js";
|
|
3
4
|
import { MESH_SDF_SAMPLER } from "../../../geometry/sdf/MESH_SDF_RESOURCES.js";
|
|
4
5
|
import { CLIPMAP_LEVEL_ARRAY } from "../../../shader/chunk/clipmap/CLIPMAP_LEVEL_STRUCT.js";
|
|
5
6
|
import { ProbeClipmapSceneHolds } from "../ProbeClipmapSceneHolds.js";
|
|
@@ -61,6 +62,19 @@ class BrickBuildOptions {
|
|
|
61
62
|
* so the fields are there when someone holds it again (D28); the surface caches go, and are baked again.
|
|
62
63
|
*/
|
|
63
64
|
export class GPUSceneBrickClipmap {
|
|
65
|
+
/**
|
|
66
|
+
* Offer the pipelines a scene's brick clipmap is kept with while something holds it — see
|
|
67
|
+
* {@link PipelineEnquiry}: the bake of the geometries' fields, the clipmap's build, and its cells filled from
|
|
68
|
+
* those fields. For a holder to offer; a clipmap nothing holds dispatches none.
|
|
69
|
+
*
|
|
70
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
71
|
+
*/
|
|
72
|
+
static enquirePipelines(enquiry) {
|
|
73
|
+
GPUGeometrySDFManager.enquirePipelines(enquiry);
|
|
74
|
+
GPUBrickClipmap.enquirePipelines(enquiry);
|
|
75
|
+
MeshSDFBrickProvider.enquirePipelines(enquiry);
|
|
76
|
+
}
|
|
77
|
+
|
|
64
78
|
/** @type {GraphicsContext} */
|
|
65
79
|
#graphics;
|
|
66
80
|
|
package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.d.ts
CHANGED
|
@@ -23,6 +23,13 @@
|
|
|
23
23
|
* lost for longer than the growth takes.
|
|
24
24
|
*/
|
|
25
25
|
export class MeshSDFBrickProvider {
|
|
26
|
+
/**
|
|
27
|
+
* Offer the pipelines a brick clipmap's cells are filled from the meshes' fields with — see
|
|
28
|
+
* {@link PipelineEnquiry}.
|
|
29
|
+
*
|
|
30
|
+
* @param {import("../../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
31
|
+
*/
|
|
32
|
+
static enquirePipelines(enquiry: import("../../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
26
33
|
/**
|
|
27
34
|
* @param {GPUDevice} device
|
|
28
35
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeshSDFBrickProvider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.js"],"names":[],"mappings":"AA0DA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;
|
|
1
|
+
{"version":3,"file":"MeshSDFBrickProvider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.js"],"names":[],"mappings":"AA0DA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;IACI;;;;;OAKG;IACH,iCAFW,OAAO,mDAAmD,EAAE,eAAe,QAOrF;IA0DD;;OAEG;IACH,+BAmBC;IAED;;;;;;OAMG;IACH,4BAEC;IAED;;;OAGG;IACH,qBAEC;IAED;;;OAGG;IACH,4BAEC;IAED;;;OAGG;IACH,6BAEC;IAED;;;OAGG;IACH,0BAHW,UAAU,WACV,oBAAoB,QAsC9B;IAsND,gBAYC;;CACJ;mCA5bY,OAAO,uBAAuB,EAAE,oBAAoB;yBACpD,OAAO,oEAAoE,EAAE,UAAU"}
|
package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MeshSDFBrickProvider.js
CHANGED
|
@@ -81,6 +81,19 @@ const RESOLVE_COMMAND = MESH_BRICK_ROUND_LIMIT;
|
|
|
81
81
|
* lost for longer than the growth takes.
|
|
82
82
|
*/
|
|
83
83
|
export class MeshSDFBrickProvider {
|
|
84
|
+
/**
|
|
85
|
+
* Offer the pipelines a brick clipmap's cells are filled from the meshes' fields with — see
|
|
86
|
+
* {@link PipelineEnquiry}.
|
|
87
|
+
*
|
|
88
|
+
* @param {import("../../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
89
|
+
*/
|
|
90
|
+
static enquirePipelines(enquiry) {
|
|
91
|
+
enquiry.compute.push(shader_mesh_brick_gather.pipeline);
|
|
92
|
+
enquiry.compute.push(shader_mesh_brick_command.pipeline);
|
|
93
|
+
enquiry.compute.push(shader_mesh_brick_batch.pipeline);
|
|
94
|
+
enquiry.compute.push(shader_mesh_brick_resolve.pipeline);
|
|
95
|
+
}
|
|
96
|
+
|
|
84
97
|
/** @type {GPUDevice} */
|
|
85
98
|
#device;
|
|
86
99
|
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
* rows being invalidated (`ProbeClipmapSceneHolds`).
|
|
19
19
|
*/
|
|
20
20
|
export class GPUBrickMaterial {
|
|
21
|
+
/**
|
|
22
|
+
* Offer the pipeline the bricks' material is gathered with — see {@link PipelineEnquiry}.
|
|
23
|
+
*
|
|
24
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
25
|
+
*/
|
|
26
|
+
static enquirePipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
21
27
|
/**
|
|
22
28
|
* @param {GPUDevice} device
|
|
23
29
|
* @param {object} options
|
package/src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPUBrickMaterial.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;GAkBG;AACH;
|
|
1
|
+
{"version":3,"file":"GPUBrickMaterial.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/material/GPUBrickMaterial.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;GAkBG;AACH;IACI;;;;OAIG;IACH,iCAFW,OAAO,gDAAgD,EAAE,eAAe,QAIlF;IA0BD;;;;OAIG;IACH;QAF2B,QAAQ,EAAxB,MAAM;OAsBhB;IAED;;OAEG;IACH,4BAEC;IAED;;;;;;OAMG;IACH,mCAMC;IAED;;;;;;;OAOG;IACH,4BAHW,UAAU,WACV,oBAAoB,QA6B9B;IAwCD,gBAQC;;CACJ;yBApMY,OAAO,iEAAiE,EAAE,UAAU;mCACpF,OAAO,6BAA6B,EAAE,oBAAoB;+BANxC,0CAA0C"}
|
|
@@ -41,6 +41,15 @@ const BRICK_MATERIAL_SLOTS_XY = 16;
|
|
|
41
41
|
* rows being invalidated (`ProbeClipmapSceneHolds`).
|
|
42
42
|
*/
|
|
43
43
|
export class GPUBrickMaterial {
|
|
44
|
+
/**
|
|
45
|
+
* Offer the pipeline the bricks' material is gathered with — see {@link PipelineEnquiry}.
|
|
46
|
+
*
|
|
47
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
48
|
+
*/
|
|
49
|
+
static enquirePipelines(enquiry) {
|
|
50
|
+
enquiry.compute.push(shader_brick_material_gather.pipeline);
|
|
51
|
+
}
|
|
52
|
+
|
|
44
53
|
/** @type {GPUDevice} */
|
|
45
54
|
#device;
|
|
46
55
|
|
|
@@ -57,6 +57,17 @@
|
|
|
57
57
|
* shrinks.
|
|
58
58
|
*/
|
|
59
59
|
export class GPUProbeClipmap {
|
|
60
|
+
/**
|
|
61
|
+
* Offer the pipelines a clipmap's probes are kept and updated with — see {@link PipelineEnquiry}: their
|
|
62
|
+
* lifetime, their rays' layout, trace and lighting, and their projection. The two flags are the ones
|
|
63
|
+
* {@link graph_update} takes, and pick the passes and the variant an update of that kind dispatches. What records
|
|
64
|
+
* the clipmap's wants is its wants' to offer.
|
|
65
|
+
*
|
|
66
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
67
|
+
* @param {boolean} history_resampling whether its updates re-sample their neighbours' histories
|
|
68
|
+
* @param {boolean} ray_resampling whether its updates re-sample a neighbour's rays
|
|
69
|
+
*/
|
|
70
|
+
static enquirePipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry, history_resampling: boolean, ray_resampling: boolean): void;
|
|
60
71
|
/**
|
|
61
72
|
* @param {GPUDevice} device
|
|
62
73
|
* @param {object} options
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPUProbeClipmap.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GPUProbeClipmap.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.js"],"names":[],"mappings":"AAgIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH;IACI;;;;;;;;;OASG;IACH,iCAJW,OAAO,gDAAgD,EAAE,eAAe,sBACxE,OAAO,kBACP,OAAO,QAyDjB;IAoTD;;;;;;;;;;;;;;;;;;;OAmBG;IACH;QAjB2B,aAAa,EAA7B,MAAM;QAEU,UAAU,EAA1B,MAAM;QAKU,OAAO,EAAvB,MAAM;QACU,mBAAmB,EAAnC,MAAM;QAEU,gBAAgB,EAAhC,MAAM;QACW,cAAc,EAA/B,OAAO;QAES,KAAK,EAArB,MAAM;QACU,QAAQ,EAAxB,MAAM;OAmHhB;IAtbD;;;OAGG;IACH,wBAHU,MAAM,CAGF;IAEd;;;;OAIG;IACH,qBAHU,MAAM,CAGL;IAEX;;;;OAIG;IACH,kBAHU,MAAM,CAGR;IAER;;;;OAIG;IACH,8BAHU,MAAM,CAGI;IAEpB;;;;OAIG;IACH,2BAHU,MAAM,CAGC;IAEjB;;;;;OAKG;IACH,yBAHU,OAAO,CAGF;IAEf;;;;OAIG;IACH,gBAHU,MAAM,CAGV;IAyYN;;;;;;;;OAQG;IACH,4CAUC;IAED;;;;;;;;;;;;OAYG;IACH,wCAuBC;IAED;;OAEG;IACH,8BAEC;IAED;;;;;OAKG;IACH,uBAEC;IAED;;;OAGG;IACH,yBAEC;IAED;;;OAGG;IACH,sBAEC;IAGD;;;OAGG;IACH,0BAEC;IAED;;;;;OAKG;IACH,wBAEC;IAED;;;OAGG;IACH,uBAEC;IAED;;;;OAIG;IACH,gBAJW,MAAM,QACN,MAAM,GACJ,MAAM,CAIlB;IAED;;;OAGG;IACH,mBAHW,MAAM,GACJ,MAAM,CAIlB;IAED;;;OAGG;IACH,oBAHW,oBAAoB,GAClB,OAAO,CAQnB;IAED;;;;;;;OAOG;IACH,SAJW,MAAM,KACN,MAAM,KACN,MAAM,QAkChB;IAED;;;;;;;;OAQG;IACH,sBAFW,eAAe,QA+BzB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH;QAzB+B,KAAK,EAAzB,UAAU;QACiB,KAAK,EAAhC,iBAAiB;QACD,eAAe,EAA/B,MAAM;QACU,UAAU,EAA1B,MAAM;QACU,cAAc,EAA9B,MAAM;QACyD,aAAa,EAA5E,OAAO,6BAA6B,EAAE,eAAe;QAErC,MAAM,EAAtB,MAAM;QAE+D,KAAK,EAA1E,OAAO,mCAAmC,EAAE,eAAe;QAEP,QAAQ,EAA5D;YAAC,cAAc,qBAA0B;SAAC;QAEzB,kBAAkB,EAAnC,OAAO;QAEU,cAAc,EAA/B,OAAO;QAEiC,QAAQ,EAAhD;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAC;QAEL,YAAY,EAArC,eAAe;QACU,eAAe,EAAxC,eAAe;QACC,QAAQ,EAAxB,MAAM;aAuQhB;IAkiBD,gBAcC;;CACJ;mCAzoDY,OAAO,4BAA4B,EAAE,oBAAoB;yBACzD,OAAO,iEAAiE,EAAE,UAAU;gCACpF,OAAO,8BAA8B,EAAE,uBAAuB,GAAC,OAAO,2BAA2B,EAAE,oBAAoB"}
|
|
@@ -26,7 +26,10 @@ import {
|
|
|
26
26
|
CLIPMAP_LEVEL_STRUCT
|
|
27
27
|
} from "../../../shader/chunk/clipmap/CLIPMAP_LEVEL_STRUCT.js";
|
|
28
28
|
import { ShaderSwitchSet } from "../../../shader/compiler/ShaderSwitchSet.js";
|
|
29
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
build_indirect_compute_dispatch_command,
|
|
31
|
+
indirect_compute_dispatch_command_pipeline
|
|
32
|
+
} from "../../../gpu_primitive/indirect/IndirectComputeCommandBuildPass.js";
|
|
30
33
|
import { graph_import_buffer } from "../../../shader/graph/graph_import_buffer.js";
|
|
31
34
|
import { GPUTileAtlas2D } from "../../../texture/atlas/GPUTileAtlas2D.js";
|
|
32
35
|
import {
|
|
@@ -182,6 +185,73 @@ const SAMPLING_SELECT_HALF = PROBE_SAMPLING_STRUCT.get("select_half").offset >>>
|
|
|
182
185
|
* shrinks.
|
|
183
186
|
*/
|
|
184
187
|
export class GPUProbeClipmap {
|
|
188
|
+
/**
|
|
189
|
+
* Offer the pipelines a clipmap's probes are kept and updated with — see {@link PipelineEnquiry}: their
|
|
190
|
+
* lifetime, their rays' layout, trace and lighting, and their projection. The two flags are the ones
|
|
191
|
+
* {@link graph_update} takes, and pick the passes and the variant an update of that kind dispatches. What records
|
|
192
|
+
* the clipmap's wants is its wants' to offer.
|
|
193
|
+
*
|
|
194
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
195
|
+
* @param {boolean} history_resampling whether its updates re-sample their neighbours' histories
|
|
196
|
+
* @param {boolean} ray_resampling whether its updates re-sample a neighbour's rays
|
|
197
|
+
*/
|
|
198
|
+
static enquirePipelines(enquiry, history_resampling, ray_resampling) {
|
|
199
|
+
assert.isBoolean(history_resampling, 'history_resampling');
|
|
200
|
+
assert.isBoolean(ray_resampling, 'ray_resampling');
|
|
201
|
+
|
|
202
|
+
const compute = enquiry.compute;
|
|
203
|
+
|
|
204
|
+
compute.push(shader_slot_stack_fill.pipeline);
|
|
205
|
+
compute.push(shader_slot_stack_push_range.pipeline);
|
|
206
|
+
|
|
207
|
+
// the lifetime, and the wants taken after the last one
|
|
208
|
+
compute.push(shader_probe_clipmap_fill.pipeline);
|
|
209
|
+
compute.push(shader_probe_clipmap_retire.pipeline);
|
|
210
|
+
compute.push(indirect_compute_dispatch_command_pipeline(enquiry.device, PROBE_THREAD_WORKGROUP_SIZE, false));
|
|
211
|
+
compute.push(shader_probe_clipmap_want_late.pipeline);
|
|
212
|
+
compute.push(shader_probe_clipmap_admit_command.pipeline);
|
|
213
|
+
compute.push(shader_probe_clipmap_admit.pipeline);
|
|
214
|
+
compute.push(shader_probe_clipmap_schedule.pipeline);
|
|
215
|
+
compute.push(shader_probe_clipmap_due.pipeline);
|
|
216
|
+
|
|
217
|
+
// the rays
|
|
218
|
+
compute.push(shader_probe_clipmap_trace_command.pipeline);
|
|
219
|
+
compute.push(shader_probe_clipmap_order.pipeline);
|
|
220
|
+
compute.push(shader_probe_clipmap_ray_counts.pipeline);
|
|
221
|
+
compute.push(shader_prefix_scan_csdldf_prepare.pipeline);
|
|
222
|
+
compute.push(shader_prefix_scan_csdldf.pipeline);
|
|
223
|
+
compute.push(shader_probe_clipmap_ray_layout.pipeline);
|
|
224
|
+
compute.push(shader_probe_clipmap_ray_command.pipeline);
|
|
225
|
+
compute.push(shader_probe_clipmap_relocate.pipeline);
|
|
226
|
+
compute.push(shader_probe_clipmap_guide_rows.pipeline);
|
|
227
|
+
compute.push(shader_probe_clipmap_guide_weights.pipeline);
|
|
228
|
+
compute.push(shader_probe_clipmap_guide_starts.pipeline);
|
|
229
|
+
compute.push(shader_probe_clipmap_trace.pipeline);
|
|
230
|
+
compute.push(shader_probe_clipmap_shade.pipeline);
|
|
231
|
+
compute.push(shader_probe_clipmap_light.pipeline);
|
|
232
|
+
compute.push(shader_probe_clipmap_bounce.pipeline);
|
|
233
|
+
|
|
234
|
+
if (history_resampling) {
|
|
235
|
+
compute.push(shader_probe_clipmap_resample.pipeline);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (ray_resampling) {
|
|
239
|
+
compute.push(shader_probe_clipmap_candidate.pipeline);
|
|
240
|
+
compute.push(shader_probe_clipmap_resample_rays.pipeline);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
compute.push(
|
|
244
|
+
shader_probe_clipmap_accumulate
|
|
245
|
+
.variant(ShaderSwitchSet.EMPTY.with(PROBE_CLIPMAP_RESAMPLING, history_resampling || ray_resampling))
|
|
246
|
+
.pipeline
|
|
247
|
+
);
|
|
248
|
+
|
|
249
|
+
// the projection
|
|
250
|
+
compute.push(shader_probe_clipmap_project_rows.pipeline);
|
|
251
|
+
compute.push(shader_probe_clipmap_project.pipeline);
|
|
252
|
+
compute.push(shader_probe_clipmap_publish.pipeline);
|
|
253
|
+
}
|
|
254
|
+
|
|
185
255
|
/**
|
|
186
256
|
* @type {number}
|
|
187
257
|
* @readonly
|
package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.d.ts
CHANGED
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
* `graph_update`.
|
|
10
10
|
*/
|
|
11
11
|
export class ProbeClipmapHitWants {
|
|
12
|
+
/**
|
|
13
|
+
* Offer the pipeline the hits' wants are recorded with — see {@link PipelineEnquiry}.
|
|
14
|
+
*
|
|
15
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
16
|
+
*/
|
|
17
|
+
static enquirePipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
12
18
|
/**
|
|
13
19
|
* @param {import("./GPUProbeClipmap.js").GPUProbeClipmap} rays_of the clipmap whose last frame's hits want
|
|
14
20
|
*/
|
package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProbeClipmapHitWants.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.js"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH;
|
|
1
|
+
{"version":3,"file":"ProbeClipmapHitWants.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapHitWants.js"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH;IACI;;;;OAIG;IACH,iCAFW,OAAO,gDAAgD,EAAE,eAAe,QAIlF;IASD;;OAEG;IACH,qBAFW,OAAO,sBAAsB,EAAE,eAAe,EAMxD;IAED;;;;;OAKG;IACH;QAF2B,UAAU,EAA1B,MAAM;aAMhB;IAED;;;OAGG;IACH,gBAHa,MAAM,CAKlB;IAED;;;;;OAKG;IACH,0CACC;IAED;;;;;;OAMG;IACH,kFAeC;;CACJ"}
|
|
@@ -13,6 +13,15 @@ import { shader_probe_clipmap_want_hits } from "./shader_probe_clipmap_want_hits
|
|
|
13
13
|
* `graph_update`.
|
|
14
14
|
*/
|
|
15
15
|
export class ProbeClipmapHitWants {
|
|
16
|
+
/**
|
|
17
|
+
* Offer the pipeline the hits' wants are recorded with — see {@link PipelineEnquiry}.
|
|
18
|
+
*
|
|
19
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
20
|
+
*/
|
|
21
|
+
static enquirePipelines(enquiry) {
|
|
22
|
+
enquiry.compute.push(shader_probe_clipmap_want_hits.pipeline);
|
|
23
|
+
}
|
|
24
|
+
|
|
16
25
|
/** @type {import("./GPUProbeClipmap.js").GPUProbeClipmap} */
|
|
17
26
|
#rays_of;
|
|
18
27
|
|
package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.d.ts
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
* one's, encoded once that surface is drawn into what `GPUProbeClipmap.write_want_bindings` binds.
|
|
9
9
|
*/
|
|
10
10
|
export class ProbeClipmapScreenWants {
|
|
11
|
+
/**
|
|
12
|
+
* Offer the pipeline a screen surface's wants are recorded with — see {@link PipelineEnquiry}.
|
|
13
|
+
*
|
|
14
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
15
|
+
*/
|
|
16
|
+
static enquirePipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
11
17
|
/**
|
|
12
18
|
* The frame's surface and view.
|
|
13
19
|
*
|
package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProbeClipmapScreenWants.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.js"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH;
|
|
1
|
+
{"version":3,"file":"ProbeClipmapScreenWants.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.js"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH;IACI;;;;OAIG;IACH,iCAFW,OAAO,gDAAgD,EAAE,eAAe,QAIlF;IAuBD;;;;;;;;;;;;;OAaG;IACH;QAV2B,KAAK,EAArB,MAAM;QACU,MAAM,EAAtB,MAAM;QAEa,MAAM;QACd,IAAI;QACY,UAAU,EAArC,UAAU,MAAM,CAAC;QACA,cAAc,GAA/B,MAAM;QACY,SAAS,GAA3B,OAAO;aA2BjB;IAED;;;OAGG;IACH,gBAHa,MAAM,CAKlB;IAED;;;;;OAKG;IACH,oBAHW,OAAO,uEAAuE,EAAE,gBAAgB,mBAQ1G;IAED;;;;;;OAMG;IACH,kFAoBC;;CACJ"}
|
package/src/shade/renderer/global_illumination/probe_clipmap/probe/ProbeClipmapScreenWants.js
CHANGED
|
@@ -12,6 +12,15 @@ import { shader_probe_clipmap_want } from "./shader_probe_clipmap_want.js";
|
|
|
12
12
|
* one's, encoded once that surface is drawn into what `GPUProbeClipmap.write_want_bindings` binds.
|
|
13
13
|
*/
|
|
14
14
|
export class ProbeClipmapScreenWants {
|
|
15
|
+
/**
|
|
16
|
+
* Offer the pipeline a screen surface's wants are recorded with — see {@link PipelineEnquiry}.
|
|
17
|
+
*
|
|
18
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
19
|
+
*/
|
|
20
|
+
static enquirePipelines(enquiry) {
|
|
21
|
+
enquiry.compute.push(shader_probe_clipmap_want.pipeline);
|
|
22
|
+
}
|
|
23
|
+
|
|
15
24
|
#depth = -1;
|
|
16
25
|
#normal = -1;
|
|
17
26
|
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offer the pipelines {@link graph_probe_clipmap_want_meshlets} dispatches — see {@link PipelineEnquiry}.
|
|
3
|
+
*
|
|
4
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
5
|
+
*/
|
|
6
|
+
export function enquire_probe_clipmap_want_meshlets_pipelines(enquiry: import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry): void;
|
|
1
7
|
/**
|
|
2
8
|
* Record the wants of a list of meshlets whose fragments pick probes (PROBE_CLIPMAP_PROPOSAL_2026_10_27.md §8.3):
|
|
3
9
|
* the meshlets a forward pass draws, which no pixel of the G-buffer stands for. Each wants the cages a reader
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph_probe_clipmap_want_meshlets.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph_probe_clipmap_want_meshlets.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/probe/graph_probe_clipmap_want_meshlets.js"],"names":[],"mappings":"AAsBA;;;;GAIG;AACH,uEAFW,OAAO,gDAAgD,EAAE,eAAe,QAOlF;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH;IARyG,KAAK,EAAnG,OAAO,iEAAiE,EAAE,UAAU;IAC5B,OAAO,EAA/D,OAAO,sBAAsB,EAAE,eAAe;IACuB,KAAK,EAA1E,OAAO,mCAAmC,EAAE,eAAe;IAC3C,MAAM,EAAtB,MAAM;IACU,kBAAkB,EAAlC,MAAM;IACU,wBAAwB,EAAxC,MAAM;SAoGhB"}
|
|
@@ -3,6 +3,7 @@ import { BufferResourceDescriptor } from "../../../../device/graph/BufferResourc
|
|
|
3
3
|
import { MESHLET_DEFINITION_STRUCT } from "../../../geometry/meshlet/encoding/MESHLET_DEFINITION_STRUCT.js";
|
|
4
4
|
import { INDIRECT_COMPUTE_COMMAND_DESCRIPTOR } from "../../../gpu_primitive/indirect/IndirectComputeCommandBuildPass.js";
|
|
5
5
|
import {
|
|
6
|
+
enquire_prefix_scan_csdldf_pipelines,
|
|
6
7
|
graph_prefix_scan_csdldf,
|
|
7
8
|
prefix_scan_csdldf_output_descriptor
|
|
8
9
|
} from "../../../gpu_primitive/prefix_sum/v1/graph_prefix_scan_csdldf.js";
|
|
@@ -19,6 +20,18 @@ import {
|
|
|
19
20
|
*/
|
|
20
21
|
const MESHLET_LIST_HEADER_BYTES = 16;
|
|
21
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Offer the pipelines {@link graph_probe_clipmap_want_meshlets} dispatches — see {@link PipelineEnquiry}.
|
|
25
|
+
*
|
|
26
|
+
* @param {import("../../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
27
|
+
*/
|
|
28
|
+
export function enquire_probe_clipmap_want_meshlets_pipelines(enquiry) {
|
|
29
|
+
enquiry.compute.push(shader_probe_clipmap_want_meshlet_count.pipeline);
|
|
30
|
+
enquire_prefix_scan_csdldf_pipelines(enquiry);
|
|
31
|
+
enquiry.compute.push(shader_prefix_sum_to_command.pipeline);
|
|
32
|
+
enquiry.compute.push(shader_probe_clipmap_want_meshlets.pipeline);
|
|
33
|
+
}
|
|
34
|
+
|
|
22
35
|
/**
|
|
23
36
|
* Record the wants of a list of meshlets whose fragments pick probes (PROBE_CLIPMAP_PROPOSAL_2026_10_27.md §8.3):
|
|
24
37
|
* the meshlets a forward pass draws, which no pixel of the G-buffer stands for. Each wants the cages a reader
|
|
@@ -27,6 +27,15 @@ export class GPUScreenProbeGI {
|
|
|
27
27
|
* @param {GPUDevice} device
|
|
28
28
|
*/
|
|
29
29
|
constructor(device: GPUDevice);
|
|
30
|
+
/**
|
|
31
|
+
* Offer the pipelines a frame of the screen probes dispatches under `settings` — see {@link PipelineEnquiry}:
|
|
32
|
+
* their placement, rays, gather and resolve. The world they trace is the probe clipmap's to offer, the pass that
|
|
33
|
+
* lights the frame from them the renderer's, and the debug views are left to the frame that first shows one.
|
|
34
|
+
*
|
|
35
|
+
* @param {import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry} enquiry
|
|
36
|
+
* @param {ScreenProbeSettings} settings the renderer's, as {@link graph_update} will be given them
|
|
37
|
+
*/
|
|
38
|
+
enquirePipelines(enquiry: import("../../../device/pipeline/PipelineEnquiry.js").PipelineEnquiry, settings: ScreenProbeSettings): void;
|
|
30
39
|
/**
|
|
31
40
|
* Drop the history: the next frame takes nothing from the frames before it, as a first frame does. For a cut, or a
|
|
32
41
|
* change of scene or lighting the temporal filters must not blend across (`Renderer#indicate_view_change`).
|