(label: string)
| 45 | } |
| 46 | |
| 47 | function 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 | |
| 55 | function makeDevice(options: { |
| 56 | maxTextureDimension2D?: number; |
no outgoing calls
no test coverage detected