From 914a2dfc91204d3ed644e4c39b7a44b96e425e8b Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Thu, 12 May 2022 15:13:26 +0000 Subject: [PATCH] dawn.node: Add support for GPUTextureDescriptor.viewFormats Bug: dawn:1276 Change-Id: Ie0dc9dbb930f894545eaa55c9c176f3e1d6c961e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/89664 Commit-Queue: Ben Clayton Auto-Submit: Corentin Wallez Kokoro: Kokoro Reviewed-by: Ben Clayton --- src/dawn/node/binding/GPUDevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dawn/node/binding/GPUDevice.cpp b/src/dawn/node/binding/GPUDevice.cpp index 163acd829e..45ab83b3ee 100644 --- a/src/dawn/node/binding/GPUDevice.cpp +++ b/src/dawn/node/binding/GPUDevice.cpp @@ -166,7 +166,8 @@ interop::Interface GPUDevice::createTexture( !conv(desc.dimension, descriptor.dimension) || // !conv(desc.mipLevelCount, descriptor.mipLevelCount) || // !conv(desc.sampleCount, descriptor.sampleCount) || // - !conv(desc.format, descriptor.format)) { + !conv(desc.format, descriptor.format) || // + !conv(desc.viewFormats, desc.viewFormatCount, descriptor.viewFormats)) { return {}; } return interop::GPUTexture::Create(env, device_.CreateTexture(&desc));