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

Function makeScene

src/splat/webgpu/gaussianRenderer.test.ts:115–134  ·  view source on GitHub ↗
(overrides: Partial<GpuGaussianSceneRef> = {})

Source from the content-addressed store, hash-verified

113}
114
115function 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
136function makeFrame(overrides: Partial<SplatCameraFrame> = {}): SplatCameraFrame {
137 const viewMatrix = new Float32Array(16);

Callers 2

createHarnessFunction · 0.85

Calls 1

makeBufferFunction · 0.85

Tested by

no test coverage detected