diff --git a/shaders/voxel.spv b/shaders/voxel.spv index c406950..3da5f45 100644 Binary files a/shaders/voxel.spv and b/shaders/voxel.spv differ diff --git a/src/main.rs b/src/main.rs index 1e2c90b..06154a8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(), diff --git a/src/voxel_cache/request_buffer.rs b/src/voxel_cache/request_buffer.rs index 203fef0..78dbc4a 100644 --- a/src/voxel_cache/request_buffer.rs +++ b/src/voxel_cache/request_buffer.rs @@ -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(0); }} }} - */ if(phase == 0) {{