Skip to content

Commit

Permalink
Use array for clearValue because it's generally more useful (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman authored Sep 25, 2024
1 parent 00baee7 commit f6c61ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webgpu/lessons/webgpu-from-webgl.md
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ const renderPassDescriptor = {
{
// view: undefined, // Assigned later
// resolveTarget: undefined, // Assigned Later
clearValue: { r: 0.5, g: 0.5, b: 0.5, a: 1.0 },
clearValue: [0.5, 0.5, 0.5, 1],
loadOp: 'clear',
storeOp: 'store',
},
Expand Down
2 changes: 1 addition & 1 deletion webgpu/webgpu-cube-multiple.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
{
// view: undefined, // Assigned later
// resolveTarget: undefined, // Assigned Later
clearValue: { r: 0.5, g: 0.5, b: 0.5, a: 1.0 },
clearValue: [0.5, 0.5, 0.5, 1],
loadOp: 'clear',
storeOp: 'store',
},
Expand Down
2 changes: 1 addition & 1 deletion webgpu/webgpu-cube-webgpu-utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
{
// view: undefined, // Assigned later
// resolveTarget: undefined, // Assigned Later
clearValue: { r: 0.5, g: 0.5, b: 0.5, a: 1.0 },
clearValue: [0.5, 0.5, 0.5, 1],
loadOp: 'clear',
storeOp: 'store',
},
Expand Down
2 changes: 1 addition & 1 deletion webgpu/webgpu-cube.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
{
// view: undefined, // Assigned later
// resolveTarget: undefined, // Assigned Later
clearValue: { r: 0.5, g: 0.5, b: 0.5, a: 1.0 },
clearValue: [0.5, 0.5, 0.5, 1],
loadOp: 'clear',
storeOp: 'store',
},
Expand Down

0 comments on commit f6c61ad

Please sign in to comment.