From f72d5450e8f05d654f5bd5f287b777e1c8c822b2 Mon Sep 17 00:00:00 2001 From: Rezmason Date: Sat, 30 Apr 2022 18:05:34 -0700 Subject: [PATCH] Replacing the deprecated loadValue property in the render pass config descriptors' color attachments --- js/webgpu/endPass.js | 4 ++-- js/webgpu/rainPass.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/webgpu/endPass.js b/js/webgpu/endPass.js index 13eb468..f58ae8b 100644 --- a/js/webgpu/endPass.js +++ b/js/webgpu/endPass.js @@ -11,8 +11,8 @@ export default ({ device, canvasFormat, canvasContext }) => { const renderPassConfig = { colorAttachments: [ { - view: null, - loadValue: { r: 0, g: 0, b: 0, a: 1 }, + // view: null, + loadOp: "clear", storeOp: "store", }, ], diff --git a/js/webgpu/rainPass.js b/js/webgpu/rainPass.js index 1e17a76..b229580 100644 --- a/js/webgpu/rainPass.js +++ b/js/webgpu/rainPass.js @@ -72,13 +72,13 @@ export default ({ config, device, timeBuffer }) => { const renderPassConfig = { colorAttachments: [ { - view: null, - loadValue: { r: 0, g: 0, b: 0, a: 1 }, + // view: null, + loadOp: "clear", storeOp: "store", }, { - view: null, - loadValue: { r: 0, g: 0, b: 0, a: 1 }, + // view: null, + loadOp: "clear", storeOp: "store", }, ],