]> git.nega.tv - josh/narcissus/commit
shark-shaders: Improve the performance of draw 2d shaders
authorJoshua Simmons <josh@nega.tv>
Thu, 16 Oct 2025 20:53:54 +0000 (22:53 +0200)
committerJoshua Simmons <josh@nega.tv>
Sat, 18 Oct 2025 21:40:34 +0000 (23:40 +0200)
commit79ea22679b81d77e6f6ac33ab003d6868efcf948
treeb7b616294cbcf4653d2f5f31d9d80c97a656dfc3
parent1e9eb39a215b95028c97ad09dc2818f188ec8a23
shark-shaders: Improve the performance of draw 2d shaders

Major improvement is to track the alpha value during resolve, and use it
to determine a conservative cut-off point for command drawing.

During resolve, remove words which became empty after culling.

Additionally use an indirect dispatch for drawing work, rather than
launching workgroups which will immediately terminate.
title/shark-shaders/shaders/composite.slang
title/shark-shaders/shaders/draw_2d.slang
title/shark-shaders/shaders/radix_sort.slang
title/shark-shaders/src/pipelines.rs
title/shark/src/draw.rs
title/shark/src/main.rs