MCPcopy Create free account

hub / github.com/KeKsBoTer/wgpu_sort / functions

Functions44 in github.com/KeKsBoTer/wgpu_sort

↓ 8 callersMethodkeys
Buffer storing the keys values. WARNING**: this buffer has padding bytes at the end use [SortBuffers::keys_valid_size] to get the valid size.
src/lib.rs:615
↓ 7 callersFunctionupload_to_buffer
only used for testing temporally used for guessing subgroup size
src/utils.rs:13
↓ 6 callersMethodvalues
Buffer containing the values
src/lib.rs:626
↓ 5 callersMethodcreate_sort_buffers
creates all buffers necessary for sorting
src/lib.rs:508
↓ 5 callersMethodsort
Writes sort commands to command encoder. If sort_first_n is not none one the first n elements are sorted otherwise everything is sorted. IMPORTANT**:
src/lib.rs:469
↓ 4 callersFunctionguess_workgroup_size
Function guesses the best subgroup size by testing the sorter with subgroup sizes 1,8,16,32,64,128 and returning the largest subgroup size that worked
src/utils.rs:94
↓ 4 callersMethodkeys_valid_size
The keys buffer has padding bytes. This function returns the number of bytes without padding
src/lib.rs:621
↓ 4 callersMethodlen
number of key-value pairs that can be stored in this buffer
src/lib.rs:607
↓ 3 callersFunctionscatter_blocks_ru
(n: u32)
src/lib.rs:636
↓ 2 callersFunctionhisto_blocks_ru
number of histogram blocks required
src/lib.rs:641
↓ 2 callersFunctionkeys_buffer_size
keys buffer must be multiple of HISTO_BLOCK_KVS
src/lib.rs:646
↓ 2 callersMethodrecord_prefix_histogram
There does not exist an indirect histogram dispatch as the number of prefixes is determined by the amount of passes
src/lib.rs:396
↓ 2 callersMethodsort_indirect
Initiates sorting with an indirect call. The dispatch buffer must contain the struct [wgpu::util::DispatchIndirectArgs]. number of y and z workgroups
src/lib.rs:494
↓ 2 callersMethodstate_buffer
Buffer containing a [SorterState]
src/lib.rs:631
↓ 1 callersMethodcreate_internal_mem_buffer
calculates and allocates a buffer that is sufficient for holding all needed information for sorting. This includes the histograms and the temporary sc
src/lib.rs:298
↓ 1 callersFunctiondownload_buffer
only used for testing temporally used for guessing subgroup size
src/utils.rs:30
↓ 1 callersMethodrecord_calculate_histogram
( &self, bind_group: &wgpu::BindGroup, length: u32, encoder: &mut wgpu::Comman
src/lib.rs:334
↓ 1 callersMethodrecord_calculate_histogram_indirect
( &self, bind_group: &wgpu::BindGroup, dispatch_buffer: &wgpu::Buffer, encoder
src/lib.rs:366
↓ 1 callersMethodrecord_scatter_keys
( &self, bind_group: &wgpu::BindGroup, length: u32, encoder: &mut wgpu::Comman
src/lib.rs:411
↓ 1 callersMethodrecord_scatter_keys_indirect
( &self, bind_group: &wgpu::BindGroup, dispatch_buffer: &wgpu::Buffer, encoder
src/lib.rs:438
↓ 1 callersFunctionsetup
()
benches/sort.rs:12
↓ 1 callersFunctionsetup
()
tests/sort.rs:68
↓ 1 callersFunctionsort
(context:&SortStuff,sorter:&GPUSorter,buffers:&SortBuffers,n:u32,iters:u32)
benches/sort.rs:54
↓ 1 callersFunctiontest_sort
(sorter: &GPUSorter, device: &wgpu::Device, queue: &wgpu::Queue)
src/utils.rs:60
Functionapply_sort
applies gpu sort with direct dispatch
tests/sort.rs:94
Functionapply_sort_indirect
applies gpu sort with indirect dispatch
tests/sort.rs:100
Methodbind_group_layout
(device: &wgpu::Device)
src/lib.rs:181
Methodcmp
(&self, other: &Self)
tests/sort.rs:197
Methodcreate_keyval_buffers
( device: &wgpu::Device, length: u32, )
src/lib.rs:251
Methodgeneral_info_data
(length: u32)
src/lib.rs:325
Functionmain
()
benches/sort.rs:87
Functionmain
()
examples/sort_indirect.rs:11
Functionmain
()
examples/sort.rs:8
Methodnew
(device: &wgpu::Device, subgroup_size: u32)
src/lib.rs:72
Methodpartial_cmp
(&self, other: &Self)
tests/sort.rs:203
Methodsample
(&self, rng: &mut R)
tests/sort.rs:208
Functionsort_f32_large
()
tests/sort.rs:31
Functionsort_half
()
tests/sort.rs:37
Functionsort_indirect_half
()
tests/sort.rs:62
Functionsort_indirect_large
()
tests/sort.rs:54
Functionsort_indirect_small
()
tests/sort.rs:47
Functionsort_u32_large
()
tests/sort.rs:25
Functionsort_u32_small
()
tests/sort.rs:19
Functiontest_sort
(n: u32,sort_fn:&SortFn,sort_first_n:Option<u32>)
tests/sort.rs:123