GPUValidationError: GPUValidationError() 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.
TheGPUValidationError() constructor creates a newGPUValidationError object instance.
In this article
Syntax
new GPUValidationError(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 aGPUValidationError object. The user agent uses this constructor to create an appropriate object when a validation error is surfaced byGPUDevice.popErrorScope or theuncapturederror event.
See the mainGPUValidationError page for a specific example involving aGPUValidationError object instance.
Specifications
| Specification |
|---|
| WebGPU> # dom-gpuvalidationerror-gpuvalidationerror> |