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", }, ],