Space Sim
Loading...
Searching...
No Matches
radix_new.comp File Reference

Step one of radix sort. More...

Go to the source code of this file.

Data Structures

struct  MortonEntry

Macros

#define WORKGROUP_SIZE   128
#define RADIX_SORT_BINS   128
#define SUBGROUP_SIZE   32
#define ITERATIONS   8
#define BODY_COUNT   15000
#define MAX_NODES   45000
#define ELEMENT_IN(index, iteration)

Functions

 layout (local_size_x=WORKGROUP_SIZE) in
 layout (std430, binding=2) buffer MortonData
void main ()

Variables

uniform int iteration

Detailed Description

Step one of radix sort.

Definition in file radix_new.comp.


Data Structure Documentation

◆ MortonEntry

struct MortonEntry

Definition at line 29 of file bounds.comp.

Data Fields
uint pid
uint morton

Macro Definition Documentation

◆ WORKGROUP_SIZE

#define WORKGROUP_SIZE   128

Definition at line 7 of file radix_new.comp.

◆ RADIX_SORT_BINS

#define RADIX_SORT_BINS   128

Definition at line 8 of file radix_new.comp.

◆ SUBGROUP_SIZE

#define SUBGROUP_SIZE   32

Definition at line 9 of file radix_new.comp.

◆ ITERATIONS

#define ITERATIONS   8

Definition at line 10 of file radix_new.comp.

◆ BODY_COUNT

#define BODY_COUNT   15000

Definition at line 12 of file radix_new.comp.

◆ MAX_NODES

#define MAX_NODES   45000

Definition at line 13 of file radix_new.comp.

◆ ELEMENT_IN

#define ELEMENT_IN ( index,
iteration )
Value:
(iteration % 2 == 0 ? entry[index] : exit[index])
uniform int iteration

Definition at line 40 of file radix_new.comp.

Referenced by main().

Function Documentation

◆ layout() [1/2]

layout ( local_size_x = WORKGROUP_SIZE)

◆ layout() [2/2]

layout ( std430 ,
binding = 2 )

Definition at line 22 of file radix_new.comp.

References layout().

◆ main()

void main ( )

Variable Documentation

◆ iteration

uniform int iteration

Definition at line 14 of file radix_new.comp.

Referenced by main().