|
Space Sim
|
Constructs an LBVH over the radix sorted mortons. More...
Go to the source code of this file.
Data Structures | |
| struct | MortonEntry |
| struct | Node |
Macros | |
| #define | WORKGROUP_SIZE 128 |
| #define | RADIX_SORT_BINS 128 |
| #define | SUBGROUP_SIZE 32 |
| #define | BODY_COUNT 15000 |
| #define | MAX_NODES 45000 |
| #define | MAX_DEPTH 64 |
Functions | |
| layout (local_size_x=WORKGROUP_SIZE) in | |
| layout (std430, binding=2) buffer MortonData | |
| int | shared_prefix (uint m0, uint pid0, uint m1, uint pid1) |
| int | delta (int a, int b) |
| void | main () |
Constructs an LBVH over the radix sorted mortons.
Definition in file tree.comp.
| struct MortonEntry |
Definition at line 29 of file bounds.comp.
| Data Fields | ||
|---|---|---|
| uint | pid | |
| uint | morton | |
| struct Node |
| layout | ( | local_size_x | = WORKGROUP_SIZE | ) |
References layout(), morton(), MortonEntry::pid, and WORKGROUP_SIZE.
| int shared_prefix | ( | uint | m0, |
| uint | pid0, | ||
| uint | m1, | ||
| uint | pid1 ) |
Definition at line 50 of file tree.comp.
References shared_prefix().
Referenced by delta(), main(), and shared_prefix().
| int delta | ( | int | a, |
| int | b ) |
Definition at line 71 of file tree.comp.
References BODY_COUNT, delta, morton(), and shared_prefix().
| void main | ( | ) |
Definition at line 77 of file tree.comp.
References BODY_COUNT, delta, main(), morton(), shared_prefix(), and t.