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:
|
case interop::GPUErrorFilter::kValidation:
|
||||||
f = wgpu::ErrorFilter::Validation;
|
f = wgpu::ErrorFilter::Validation;
|
||||||
break;
|
break;
|
||||||
|
case interop::GPUErrorFilter::kInternal:
|
||||||
|
f = wgpu::ErrorFilter::Internal;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
Napi::Error::New(env, "unhandled GPUErrorFilter value").ThrowAsJavaScriptException();
|
Napi::Error::New(env, "unhandled GPUErrorFilter value").ThrowAsJavaScriptException();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue