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

Function makeTexture

src/splat/webgpu/psnrSplatSession.test.ts:47–53  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

45}
46
47function makeTexture(label: string) {
48 return {
49 label,
50 createView: vi.fn(() => ({ label: `${label}:view` } as unknown as GPUTextureView)),
51 destroy: vi.fn(),
52 } as unknown as GPUTexture & { destroy: ReturnType<typeof vi.fn> };
53}
54
55function makeDevice(options: {
56 maxTextureDimension2D?: number;

Callers 3

makeDeviceFunction · 0.70
createHarnessFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected