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 <bclayton@google.com>
Auto-Submit: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
Corentin Wallez 2022-05-12 15:13:26 +00:00 committed by Dawn LUCI CQ
parent 1a4cb65561
commit 914a2dfc91
1 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,8 @@ interop::Interface<interop::GPUTexture> 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<GPUTexture>(env, device_.CreateTexture(&desc));