feat(unstable/webgpu): add deviceStartCapture and deviceStopCapture (#28192)

This is achieved by adding a new `Deno.webgpu` namespace which will be
used for non-spec functionality, which for now will be marked as
unstable
This commit is contained in:
Leo Kettmeir 2025-04-17 02:26:28 +09:00 committed by GitHub
parent 1820fee427
commit 066a205d5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 72 additions and 1 deletions

View file

@ -4399,6 +4399,40 @@ declare namespace Deno {
export {}; // only export exports
}
/**
* The webgpu namespace provides additional APIs that the WebGPU specification
* does not specify.
*
* @category GPU
* @experimental
*/
export namespace webgpu {
/**
* Starts a frame capture.
*
* This API is useful for debugging issues related to graphics, and makes
* the captured data available to RenderDoc or XCode
* (or other software for debugging frames)
*
* @category GPU
* @experimental
*/
export function deviceStartCapture(device: GPUDevice): void;
/**
* Stops a frame capture.
*
* This API is useful for debugging issues related to graphics, and makes
* the captured data available to RenderDoc or XCode
* (or other software for debugging frames)
*
* @category GPU
* @experimental
*/
export function deviceStopCapture(device: GPUDevice): void;
export {}; // only export exports
}
export {}; // only export exports
}