Skip to content

Commit

Permalink
reduce max layers per fragment to improve performance on lower end GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
rconde01 authored and greggman committed Mar 16, 2024
1 parent 00445f5 commit 5c37623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/a-buffer/composite.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fn main_fs(@builtin(position) position: vec4f) -> @location(0) vec4f {
let headsIndex = u32(fragCoords.y - sliceInfo.sliceStartY) * uniforms.targetWidth + u32(fragCoords.x);

// The maximum layers we can process for any pixel
const maxLayers = 24u;
const maxLayers = 12u;

var layers: array<LinkedListElement, maxLayers>;

Expand Down

0 comments on commit 5c37623

Please sign in to comment.