/** * WebGPU Physics Smoke / Benchmark — browser entry point. * * Runs the existing WebGPU particle-physics pipeline at 1K, 10K, and 100K * particles, measures per-step wall time, and exposes a machine-readable * artifact on window.__WEBGPU_PHYSICS_ARTIFACT__ for the Playwright harness. * * Build: pnpm run build:webgpu-physics-bench * (esbuild bundles this entry into benchmark-webgpu-physics.js) * * Run: pnpm run benchmark:webgpu:physics * (or open benchmark-webgpu-physics.html directly in Chrome) */ interface PhysicsBenchCell { particleCount: number; steps: number; totalMs: number; avgStepMs: number; fps: number; passed: boolean; } interface WebGPUPhysicsArtifact { schema_version: string; benchmark: string; outputPath: string; generatedAt: string; status: 'initializing' | 'completed' | 'error' | 'unsupported'; commitSha: string; driver: string; sourceHtml: string; browserUserAgent: string; adapter: { vendor: string | null; architecture: string | null; device: string | null; description: string | null; } | null; cells: PhysicsBenchCell[]; failures: Array<{ stage: string; message: string; timestamp: string; }>; notes: string[]; } declare global { interface Window { __WEBGPU_PHYSICS_ARTIFACT__?: WebGPUPhysicsArtifact; } } export {}; //# sourceMappingURL=webgpu-physics.entry.d.ts.map