Table of Contents

Class GPUDeviceLostInfo

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The GPUDeviceLostInfo interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} represents the object returned when the Lost {{jsxref("Promise")}} resolves. This provides information as to why a device has been lost.

[Value("GPUDeviceLostInfo")]
public class GPUDeviceLostInfo
Inheritance
GPUDeviceLostInfo
Inherited Members

Remarks

See the Lost page for more information about "lost" state.

-The WebGPU API

See also on MDN

Constructors

GPUDeviceLostInfo()

public GPUDeviceLostInfo()

Properties

Message

The message read-only property of the
GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.

[Value("message")]
public string Message { get; }

Property Value

string

A string.

Remarks

Reason

The reason read-only property of the
GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.

[Value("reason")]
public GPUDeviceLostReason Reason { get; }

Property Value

GPUDeviceLostReason

An enumerated value. At the moment the only value defined in the spec is "destroyed", which indicates that the device was destroyed by a call to Destroy().If the device was lost because of an unknown reason not covered in the available enumerated values, reason returns undefined.

Remarks