GPURenderPassEncoder: insertDebugMarker() method

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("WebGPU API")}}{{SecureContext_Header}}{{AvailableInWorkers}}

The **insertDebugMarker()** method of the {{domxref("GPURenderPassEncoder")}} interface marks a specific point in a series of encoded render pass commands with a label.

This could be used for telemetry, or may be utilized in {{domxref("GPUError")}} messages, browser dev tools, or other services in the future to help with debugging.

Syntax

js-nolint
insertDebugMarker(markerLabel)

Parameters

  • markerLabel
  • : A string representing the label to insert.

Return value

None ({{jsxref("undefined")}}).

Examples

js
// …

passEncoder.insertDebugMarker("my_marker");

// …

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • The WebGPU API