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:
Corentin Wallez 2022-12-02 15:36:17 +00:00 committed by Dawn LUCI CQ
parent 63a67a7218
commit 06749f92b2
1 changed files with 3 additions and 0 deletions

View File

@ -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;