From bb6997214de5260fde6f79d8dbde4a4bda0bb788 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Tue, 5 Apr 2022 12:50:13 +0000 Subject: [PATCH] dawn.node: Update for attachment "value" renames. This silences some deprecations warnings. Bug: dawn:1123 Change-Id: Ic6c12c6ad7606a85be8a17177b55a53f61d1136d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/85760 Reviewed-by: Ben Clayton Commit-Queue: Corentin Wallez --- src/dawn/node/binding/Converter.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/dawn/node/binding/Converter.cpp b/src/dawn/node/binding/Converter.cpp index a8fa6a34a0..9c116f2276 100644 --- a/src/dawn/node/binding/Converter.cpp +++ b/src/dawn/node/binding/Converter.cpp @@ -970,7 +970,7 @@ namespace wgpu::binding { out = {}; return Convert(out.view, in.view) && // Convert(out.resolveTarget, in.resolveTarget) && // - Convert(out.clearColor, in.clearValue) && // + Convert(out.clearValue, in.clearValue) && // Convert(out.loadOp, in.loadOp) && // Convert(out.storeOp, in.storeOp); } @@ -978,14 +978,14 @@ namespace wgpu::binding { bool Converter::Convert(wgpu::RenderPassDepthStencilAttachment& out, const interop::GPURenderPassDepthStencilAttachment& in) { out = {}; - return Convert(out.view, in.view) && // - Convert(out.clearDepth, in.depthClearValue) && // - Convert(out.depthLoadOp, in.depthLoadOp) && // - Convert(out.depthStoreOp, in.depthStoreOp) && // - Convert(out.depthReadOnly, in.depthReadOnly) && // - Convert(out.clearStencil, in.stencilClearValue) && // - Convert(out.stencilLoadOp, in.stencilLoadOp) && // - Convert(out.stencilStoreOp, in.stencilStoreOp) && // + return Convert(out.view, in.view) && // + Convert(out.depthClearValue, in.depthClearValue) && // + Convert(out.depthLoadOp, in.depthLoadOp) && // + Convert(out.depthStoreOp, in.depthStoreOp) && // + Convert(out.depthReadOnly, in.depthReadOnly) && // + Convert(out.stencilClearValue, in.stencilClearValue) && // + Convert(out.stencilLoadOp, in.stencilLoadOp) && // + Convert(out.stencilStoreOp, in.stencilStoreOp) && // Convert(out.stencilReadOnly, in.stencilReadOnly); }