adding sort that actually stops when finshed

This commit is contained in:
2026-09-15 22:27:26 +02:00
parent 532580b9bd
commit 5ed2f67324
3 changed files with 2 additions and 4 deletions
BIN
View File
Binary file not shown.
+1
View File
@@ -146,6 +146,7 @@ impl State
backends: wgpu::Backends::VULKAN,
display: Some(Box::new(display)),
//flags: InstanceFlags::default() | InstanceFlags::debugging(),
flags: InstanceFlags::default(),
memory_budget_thresholds: MemoryBudgetThresholds::default(),
backend_options: Default::default(),
+1 -4
View File
@@ -249,17 +249,14 @@ where
// Check if phase is last
/*
if(phase == sub_phase)
{{
let next_phase_width = phase_total_width * 2;
if(next_phase_width >= element_sort_count && phase_total_width >= element_sort_count)
if(next_phase_width >= (element_sort_count * 2) && phase_total_width >= (element_sort_count * 2))
{{
// This was the final phase, stop
indirect_count = vec3<u32>(0);
}}
}}
*/
if(phase == 0)
{{