Skip to content

Commit

Permalink
Use getPreferredCanvasFormat() in render pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jrprice authored Mar 20, 2023
1 parent a2f4d2f commit 2678ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nbody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function initPipelines() {
module: module,
entryPoint: 'fs_main',
targets: [{
format: 'bgra8unorm',
format: navigator.gpu.getPreferredCanvasFormat(),
blend: {
color: {
operation: "add",
Expand Down

0 comments on commit 2678ab3

Please sign in to comment.