{"id":"dolphin.lightlab--dolphinGpuReuse","name":"dolphinGpuReuse","owner":"dolphin","package":"dolphin.lightlab","kind":"class","signature":"external class dolphinGpuReuse","description":"A dolphin gpu reuse record carrying surfaceCache, gatheredIndirect, surfaceWork, probeWork, width.","context":"Build bounded lighting experiments with geometry, visibility, transport, film, and GPU/CPU contracts.","parameters":[],"returns":"void","members":[{"name":"surfaceCache","kind":"field","type":"buffer of float","description":"Stores surface cache as buffer of float.","signature":"buffer of float surfaceCache","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"gatheredIndirect","kind":"field","type":"buffer of float","description":"Stores gathered indirect as buffer of float.","signature":"buffer of float gatheredIndirect","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"surfaceWork","kind":"field","type":"buffer of int","description":"Stores surface work as buffer of int.","signature":"buffer of int surfaceWork","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"probeWork","kind":"field","type":"buffer of int","description":"Stores probe work as buffer of int.","signature":"buffer of int probeWork","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"width","kind":"field","type":"int","description":"Stores width as int.","signature":"int width","tags":["class","field","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"dolphinGpuReuse","kind":"constructor","parameters":[],"returns":"void","signature":"dolphinGpuReuse()","description":"Dolphin gpu reuse.","tags":["class","constructor","dolphin.lightlab"],"updated":"2026-09-09"},{"name":"Begin","kind":"method","parameters":[{"name":"width","type":"int","description":"Width."},{"name":"height","type":"int","description":"Height."},{"name":"primitiveCount","type":"int","description":"Primitive count."}],"returns":"bool","signature":"Begin(int width,int height,int primitiveCount) returns bool","description":"Begin.","tags":["class","method","dolphin.lightlab"],"exampleId":"method-Begin-6","updated":"2026-09-09"},{"name":"UpdateSurfaceCache","kind":"method","parameters":[{"name":"geometry","type":"buffer of float","description":"Geometry."},{"name":"scene","type":"buffer of float","description":"Scene."},{"name":"camera","type":"buffer of float","description":"Camera."},{"name":"revision","type":"int","description":"Revision."}],"returns":"bool","signature":"UpdateSurfaceCache(buffer of float geometry,buffer of float scene,buffer of float camera,int revision) returns bool","description":"Update surface cache.","tags":["class","method","dolphin.lightlab"],"exampleId":"method-UpdateSurfaceCache-7","updated":"2026-09-09"},{"name":"GatherDiffuseProbes","kind":"method","parameters":[{"name":"geometry","type":"buffer of float","description":"Geometry."}],"returns":"bool","signature":"GatherDiffuseProbes(buffer of float geometry) returns bool","description":"Gather diffuse probes.","tags":["class","method","dolphin.lightlab"],"exampleId":"method-GatherDiffuseProbes-8","updated":"2026-09-09"}],"tags":["class","cpu","dolphin","dolphin.lightlab","lightlab","method","source-example"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/lightlab/src/gpu_reuse.yh","line":133,"sha256":"d5d5880cbf64b1c601a7d82ebce8e5839f714086acdf1695fbcacbc1dffbed60"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use dolphinGpuReuse","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using dolphin.lightlab\n\n// Build bounded lighting experiments with geometry, visibility, transport, film, and GPU/CPU contracts.\ndolphinGpuReuse sample = dolphinGpuReuse()\nConsole.Log(Text.From(sample.width))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphingpureuse\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"dolphin.lightlab\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/lightlab\"\n\n[[dependencies]]\npackage = \"dolphin.materials\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/materials\"\n\n[[dependencies]]\npackage = \"dolphin.math\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/math\"\n\n[[dependencies]]\npackage = \"dolphin.spatial3d\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/spatial3d\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"dde99da54061879faddccef4a30d5f6c72b5f64b6b38a84ccee89793144dcca6","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Begin-6","title":"dolphinGpuReuse.Begin","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using dolphin.lightlab\n\n// Begin.\ndolphinGpuReuse instance = dolphinGpuReuse()\nint argument_width = 1\nint argument_height = 1\nint argument_primitiveCount = 1\nbool result = instance.Begin(argument_width, argument_height, argument_primitiveCount)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphingpureuse\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"dolphin.lightlab\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/lightlab\"\n\n[[dependencies]]\npackage = \"dolphin.materials\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/materials\"\n\n[[dependencies]]\npackage = \"dolphin.math\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/math\"\n\n[[dependencies]]\npackage = \"dolphin.spatial3d\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/spatial3d\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"6ab6b724128f95b40c3e8ad72eb6f31ddc79cad8971ebdc7ba34c8c49a8af913","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-UpdateSurfaceCache-7","title":"dolphinGpuReuse.UpdateSurfaceCache","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using dolphin.lightlab\n\n// Update surface cache.\ndolphinGpuReuse instance = dolphinGpuReuse()\nbuffer of float argument_geometry\nargument_geometry.Resize(8)\nbuffer of float argument_scene\nargument_scene.Resize(8)\nbuffer of float argument_camera\nargument_camera.Resize(8)\nint argument_revision = 1\nbool result = instance.UpdateSurfaceCache(argument_geometry, argument_scene, argument_camera, argument_revision)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphingpureuse\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"dolphin.lightlab\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/lightlab\"\n\n[[dependencies]]\npackage = \"dolphin.materials\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/materials\"\n\n[[dependencies]]\npackage = \"dolphin.math\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/math\"\n\n[[dependencies]]\npackage = \"dolphin.spatial3d\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/spatial3d\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"f4ac18a2f715f538bf33f1781a41a030b46b27df10dd252fb0a65936d53aa407","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-GatherDiffuseProbes-8","title":"dolphinGpuReuse.GatherDiffuseProbes","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using dolphin.lightlab\n\n// Gather diffuse probes.\ndolphinGpuReuse instance = dolphinGpuReuse()\nbuffer of float argument_geometry\nargument_geometry.Resize(8)\nbool result = instance.GatherDiffuseProbes(argument_geometry)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_lightlab__dolphingpureuse\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"dolphin.lightlab\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/lightlab\"\n\n[[dependencies]]\npackage = \"dolphin.materials\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/materials\"\n\n[[dependencies]]\npackage = \"dolphin.math\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/math\"\n\n[[dependencies]]\npackage = \"dolphin.spatial3d\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/spatial3d\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"da1fe82bc9c84a9e00be782ad0c92fc0111da55b101e00c5d8cd32f404db6e6a","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["surfaceCache","gatheredIndirect","surfaceWork","probeWork","width","dolphinGpuReuse","Begin","UpdateSurfaceCache","GatherDiffuseProbes"],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.lightlab--dolphinGpuReuse","json":"https://demonhunterlabs.com/reference/items/dolphin.lightlab--dolphinGpuReuse.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.lightlab--dolphinGpuReuse.md"}
