node: add support for GPUErrorFilter.Internal
Bug: None Change-Id: Icb36b8a3d207d068185494580358f438f8332c65 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/112420 Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
63a67a7218
commit
06749f92b2
|
@ -496,6 +496,9 @@ void GPUDevice::pushErrorScope(Napi::Env env, interop::GPUErrorFilter filter) {
|
|||
case interop::GPUErrorFilter::kValidation:
|
||||
f = wgpu::ErrorFilter::Validation;
|
||||
break;
|
||||
case interop::GPUErrorFilter::kInternal:
|
||||
f = wgpu::ErrorFilter::Internal;
|
||||
break;
|
||||
default:
|
||||
Napi::Error::New(env, "unhandled GPUErrorFilter value").ThrowAsJavaScriptException();
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue