From 06749f92b290507c97a98666bb83a6416efe0c1d Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 2 Dec 2022 15:36:17 +0000 Subject: [PATCH] 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 Reviewed-by: Austin Eng Kokoro: Kokoro Commit-Queue: Corentin Wallez --- src/dawn/node/binding/GPUDevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dawn/node/binding/GPUDevice.cpp b/src/dawn/node/binding/GPUDevice.cpp index 9ac8c2808a..4b512c8edc 100644 --- a/src/dawn/node/binding/GPUDevice.cpp +++ b/src/dawn/node/binding/GPUDevice.cpp @@ -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;