Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The GPUUncapturedErrorEvent()
constructor creates a new GPUUncapturedErrorEvent
object instance.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The GPUUncapturedErrorEvent()
constructor creates a new GPUUncapturedErrorEvent
object instance.
js
new GPUUncapturedErrorEvent(type, options)
type
An enumerated value specifying the type of error. Possible values are:
"internal"
The error is a GPUInternalError
.
"out-of-memory"
The error is a GPUOutOfMemoryError
.
"validation"
The error is a GPUValidationError
.
options
An object, which can contain the following properties:
A developer would not manually use the constructor to create a GPUUncapturedErrorEvent
object. The user agent uses this constructor to create an appropriate object when the GPUDevice
uncapturederror
event fires to allow capturing of an unexpected error.
See the main GPUUncapturedErrorEvent
page for an example.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
GPUUncapturedErrorEvent |
113Currently supported on ChromeOS, macOS, and Windows only. |
113Currently supported on ChromeOS, macOS, and Windows only. |
previewCurrently supported on Linux and Windows only. |
No |
99Currently supported on ChromeOS, macOS, and Windows only. |
No | No | No | No | No | No | No |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/GPUUncapturedErrorEvent/GPUUncapturedErrorEvent