GPUOutOfMemoryError: GPUOutOfMemoryError() constructor
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Note: This feature is available inWeb Workers.
TheGPUOutOfMemoryError() constructor creates a newGPUOutOfMemoryError object instance.
In this article
Syntax
new GPUOutOfMemoryError(message)Parameters
messageA string providing a human-readable message that explains why the error occurred.
Examples
A developer would not manually use the constructor to create aGPUOutOfMemoryError object. The user agent uses this constructor to create an appropriate object when an out-of-memory error is surfaced byGPUDevice.popErrorScope or theuncapturederror event.
See the mainGPUOutOfMemoryError page for a specific example involving aGPUOutOfMemoryError object instance.
Specifications
| Specification |
|---|
| WebGPU> # dom-gpuoutofmemoryerror-gpuoutofmemoryerror> |