From 4d68bcbd9da0a1997b29648f227f9c867dfee779 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Tue, 5 Apr 2022 16:25:23 +0000 Subject: [PATCH] dawn.node: Implement bundle encoder depth/stencilReadOnly Bug: dawn:1325 Change-Id: Iffe8b316038d639d68fa57dfb448e7242fd1f087 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/85802 Reviewed-by: Brandon Jones Commit-Queue: Corentin Wallez --- src/dawn/node/binding/GPUDevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dawn/node/binding/GPUDevice.cpp b/src/dawn/node/binding/GPUDevice.cpp index 8703630ff7..ef1a975d51 100644 --- a/src/dawn/node/binding/GPUDevice.cpp +++ b/src/dawn/node/binding/GPUDevice.cpp @@ -400,7 +400,9 @@ namespace wgpu::binding { if (!conv(desc.label, descriptor.label) || !conv(desc.colorFormats, desc.colorFormatsCount, descriptor.colorFormats) || !conv(desc.depthStencilFormat, descriptor.depthStencilFormat) || - !conv(desc.sampleCount, descriptor.sampleCount)) { + !conv(desc.sampleCount, descriptor.sampleCount) || + !conv(desc.depthReadOnly, descriptor.depthReadOnly) || + !conv(desc.stencilReadOnly, descriptor.stencilReadOnly)) { return {}; }