adding sort that actually stops when finshed
This commit is contained in:
Binary file not shown.
@@ -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(),
|
||||
|
||||
@@ -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)
|
||||
{{
|
||||
|
||||
Reference in New Issue
Block a user