]> git.nega.tv - josh/narcissus/commit
shark: Improve shader performance
authorJosh Simmons <josh@nega.tv>
Thu, 18 Jul 2024 21:19:39 +0000 (23:19 +0200)
committerJosh Simmons <josh@nega.tv>
Thu, 18 Jul 2024 21:19:39 +0000 (23:19 +0200)
commitfd08276bb672e02512a9c459f6d032b199950a24
treeb05a2c68492bcac0f69447419b969e8344736751
parent989a99c7249bf3b99f4fd738e3663a8ec4d64835
shark: Improve shader performance

Scalarize all the things!
Remove extra passes over the input primitives buffer.
Use AABB of entire subgroup to determine which tiles to write.
title/shark-shaders/shaders/display_transform.comp.glsl
title/shark-shaders/shaders/primitive_2d.h
title/shark-shaders/shaders/primitive_2d_bin.comp.glsl
title/shark-shaders/shaders/primitive_2d_bin_clear.comp.glsl
title/shark-shaders/shaders/primitive_2d_rasterize.comp.glsl
title/shark/src/main.rs