pushErrorScope() method of the
GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type.
Once you are done capturing errors, you can end capture by invoking
GPUDevice.popErrorScope(). This pops the scope from the stack and returns a
Promise that resolves to an object describing the first error captured in the scope, or
null if no errors were captured.