Starting scatter pass
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user