WebGPU API
The insertDebugMarker() method of the
GPUCommandEncoder interface marks a specific point in a series of encoded commands with a label.
This could be used for telemetry, or may be utilized in GPUError messages, browser dev tools, or other services in the future to help with debugging.
Syntax
insertDebugMarker(markerLabel)
Parameters
markerLabel- : A string representing the label to insert.
Return value
None (undefined).
Examples
// …
commandEncoder.insertDebugMarker("my_marker");
// …
Specifications
Browser compatibility
See also
- The WebGPU API
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
