Replacing the deprecated loadValue property in the render pass config descriptors' color attachments

This commit is contained in:
Rezmason
2022-04-30 18:05:34 -07:00
parent e39c26a95a
commit f72d5450e8
2 changed files with 6 additions and 6 deletions

View File

@@ -11,8 +11,8 @@ export default ({ device, canvasFormat, canvasContext }) => {
const renderPassConfig = { const renderPassConfig = {
colorAttachments: [ colorAttachments: [
{ {
view: null, // view: null,
loadValue: { r: 0, g: 0, b: 0, a: 1 }, loadOp: "clear",
storeOp: "store", storeOp: "store",
}, },
], ],

View File

@@ -72,13 +72,13 @@ export default ({ config, device, timeBuffer }) => {
const renderPassConfig = { const renderPassConfig = {
colorAttachments: [ colorAttachments: [
{ {
view: null, // view: null,
loadValue: { r: 0, g: 0, b: 0, a: 1 }, loadOp: "clear",
storeOp: "store", storeOp: "store",
}, },
{ {
view: null, // view: null,
loadValue: { r: 0, g: 0, b: 0, a: 1 }, loadOp: "clear",
storeOp: "store", storeOp: "store",
}, },
], ],