(overrides: Partial<GpuGaussianSceneRef> = {})
| 113 | } |
| 114 | |
| 115 | function makeScene(overrides: Partial<GpuGaussianSceneRef> = {}): GpuGaussianSceneRef { |
| 116 | return { |
| 117 | sceneId: 'scene', |
| 118 | device: {} as GPUDevice, |
| 119 | count: 3, |
| 120 | shDegree: 0, |
| 121 | bounds: { |
| 122 | min: [0, 0, 0], |
| 123 | max: [1, 1, 1], |
| 124 | center: [0.5, 0.5, 0.5], |
| 125 | size: 1, |
| 126 | }, |
| 127 | gaussianBuffer: makeBuffer('gaussians'), |
| 128 | shBuffer: makeBuffer('sh'), |
| 129 | gaussianByteLength: 3 * 64, |
| 130 | shByteLength: 0, |
| 131 | release: vi.fn(), |
| 132 | ...overrides, |
| 133 | }; |
| 134 | } |
| 135 | |
| 136 | function makeFrame(overrides: Partial<SplatCameraFrame> = {}): SplatCameraFrame { |
| 137 | const viewMatrix = new Float32Array(16); |
no test coverage detected