MCPcopy Index your code
hub / github.com/CapSoftware/Cap / disposeWebGPU

Function disposeWebGPU

apps/desktop/src/utils/webgpu-renderer.ts:546–556  ·  view source on GitHub ↗
(renderer: WebGPURenderer)

Source from the content-addressed store, hash-verified

544}
545
546export function disposeWebGPU(renderer: WebGPURenderer): void {
547 renderer.frameTexture?.destroy();
548 renderer.frameTexture = null;
549 renderer.bindGroup = null;
550 renderer.yTexture?.destroy();
551 renderer.yTexture = null;
552 renderer.uvTexture?.destroy();
553 renderer.uvTexture = null;
554 renderer.nv12BindGroup = null;
555 renderer.device.destroy();
556}

Callers 3

cleanupFunction · 0.90
cleanupFunction · 0.90
createImageDataWSFunction · 0.90

Calls 1

destroyMethod · 0.80

Tested by

no test coverage detected