---
title: "GPUDeviceLostInfo | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

# Interface GPUDeviceLostInfo

The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost. Available only in secure contexts.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)

interface GPUDeviceLostInfo {  
    [message](#message): string;  
    [reason](#reason): [GPUDeviceLostReason](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUDeviceLostReason/);  
}

##### Index

### Properties[](#properties)

[message](#message) [reason](#reason)

## Properties[](#properties-1)

### `Readonly`message[](#message)

message: string

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

[MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)

### `Readonly`reason[](#reason)

reason: [GPUDeviceLostReason](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GPUDeviceLostReason/)

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

[MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
