Starting scatter pass

This commit is contained in:
2026-10-02 17:35:26 +02:00
parent 7dfcfe56e9
commit 9af63cf2bd
7 changed files with 101 additions and 36 deletions
+2 -6
View File
@@ -72,7 +72,7 @@ impl RadixSorter
const WG_THREAD_COUNT: usize = 256;
// Elements managed per thread for histo build
const WE_HISTO_ELEMENTS: usize = 1;
const WE_HISTO_ELEMENTS: usize = 16;
// Elements managed per workgroup for histo build
const WG_HISTO_ELEMENTS: usize = Self::WG_THREAD_COUNT * Self::WE_HISTO_ELEMENTS;
@@ -351,11 +351,7 @@ impl RadixSorter
//compute_pass.dispatch_workgroups_indirect(&self., 0);
compute_pass.set_pipeline(&self.scatter_pass);
compute_pass.set_immediates(0, bytes);
compute_pass.dispatch_workgroups(
self.max_size.div_ceil(Self::WG_THREAD_COUNT) as u32,
1,
1,
);
compute_pass.dispatch_workgroups(self.histo_block_count as u32, 1, 1);
}
// Even number of passes => data is in the user buffer