Skip to content

Commit

Permalink
"Fix" clear value
Browse files Browse the repository at this point in the history
We previously set all clearValue settings to arrays.
Arrays are arguably a better pattern as they directly map
to TypedArrays and other forms of 4 values.
  • Loading branch information
greggman committed Oct 2, 2024
1 parent 1e05ae9 commit 6ea38ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/occlusionQuery/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ const renderPassDescriptor: GPURenderPassDescriptor = {
colorAttachments: [
{
view: undefined, // Assigned later
clearValue: { r: 0.5, g: 0.5, b: 0.5, a: 1.0 },
clearValue: [0.5, 0.5, 0.5, 1.0],
loadOp: 'clear',
storeOp: 'store',
},
Expand Down

0 comments on commit 6ea38ec

Please sign in to comment.