MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / loadWebGpuFixtureAndWait

Function loadWebGpuFixtureAndWait

e2e/webgpu-psnr-app.spec.ts:647–663  ·  view source on GitHub ↗
(
  page: Page,
  fixtureFiles: TestDatasetFileEntry[]
)

Source from the content-addressed store, hash-verified

645}
646
647async function loadWebGpuFixtureAndWait(
648 page: Page,
649 fixtureFiles: TestDatasetFileEntry[]
650): Promise<WebGpuSplatDebugCounters> {
651 await loadTestDataset(page, fixtureFiles);
652 await expect(page.locator('text=Source:')).toBeVisible({ timeout: 45_000 });
653 await switchPointCloudToSplats(page);
654 await waitForWebGpuSplatCanvasVisible(page);
655 await waitForPsnrFrameReady(page);
656 await page.evaluate(async () => {
657 const api = (window as Window & { __COLMAP_WEBVIEW_E2E__?: ColmapWebViewE2EApi }).__COLMAP_WEBVIEW_E2E__;
658 await api?.waitForRenderFrames(6);
659 });
660 await waitForBackgroundPsnrSettled(page);
661
662 return getWebGpuSplatDebugCounters(page);
663}
664
665async function waitForSelectedPsnrReadyAfter(
666 page: Page,

Callers 1

Calls 6

loadTestDatasetFunction · 0.90
switchPointCloudToSplatsFunction · 0.70
waitForPsnrFrameReadyFunction · 0.70

Tested by

no test coverage detected