@hology/core 0.0.266 → 0.0.267

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.
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=renderer-loading.test.d.ts.map
@@ -1,4 +0,0 @@
1
- import{afterEach as e,describe as t,expect as n,it as a,vi as o}from"vitest";import{FrameGraphBuilder as r,GTAOEffect as s}from"@hology/webgpu-renderer";e(()=>o.unstubAllGlobals()),t("renderer loading preparation",()=>{a("compiles fullscreen pipelines without consuming frame uniforms or rendering",async()=>{let e;o.stubGlobal("GPUShaderStage",{FRAGMENT:1}),o.stubGlobal("GPUBufferUsage",{UNIFORM:1,COPY_DST:2});const t=new r({addCustomPass:t=>{e=t}}),a=o.fn(()=>new Float32Array(4));t.addFullscreenPass({name:"test",inputs:{color:"sceneColor"},outputs:"output",uniformBufferSize:16,fragmentShader:"",updateUniforms:a});const s={createShaderModule:()=>({}),createBindGroupLayout:()=>({}),createPipelineLayout:()=>({}),createRenderPipeline:o.fn(()=>({})),createRenderPipelineAsync:o.fn(async()=>({})),createBuffer:()=>({}),createBindGroup:()=>({}),queue:{writeBuffer:o.fn()}},i={beginRenderPass:o.fn(()=>({setPipeline(){},setBindGroup(){},draw(){},end(){}}))},l={device:s,encoder:i,getColorFormat:()=>"rgba16float",getColorView:()=>({}),linearClampSampler:{}};await e.compile(l),n(s.createRenderPipelineAsync).toHaveBeenCalledTimes(1),n(s.createRenderPipeline).not.toHaveBeenCalled(),n(a).not.toHaveBeenCalled(),n(i.beginRenderPass).not.toHaveBeenCalled(),e.execute(l),n(s.createRenderPipeline).not.toHaveBeenCalled(),n(a).toHaveBeenCalledTimes(1),n(i.beginRenderPass).toHaveBeenCalledTimes(1)}),a("keeps AO passes and history when equivalent quality settings are reapplied",()=>{const e=new s({directions:2,denoise:{samples:8},temporal:{historyWeight:.9}}),t=[],a={createColorTarget:e=>e,addFullscreenPass:e=>t.push(e)},o={depth:"depth",normal:"normal",velocity:"velocity"};e.addPasses(a,o);const r=t[0];n(e.consumeHistoryValid()).toBe(!1),e.setOptions({directions:2,denoise:{samples:8},temporal:{historyWeight:.9}}),e.addPasses(a,o),n(t[3]).toBe(r),n(e.consumeHistoryValid()).toBe(!0),e.setOptions({directions:3}),e.addPasses(a,o),n(t[6]).not.toBe(r),n(e.consumeHistoryValid()).toBe(!1)})});/*
2
- * Copyright (©) 2026 Hology Interactive AB. All rights reserved.
3
- * See the LICENSE.md file for details.
4
- */