|
Space Sim
|
Computes mortons over each particle in the simulation for LBVH construction. More...
Go to the source code of this file.
Data Structures | |
| struct | Particle |
| struct | MortonEntry |
Macros | |
| #define | BODY_COUNT 15000 |
| #define | MAX_NODES 45000 |
| #define | WORKGROUP_SIZE 128 |
Functions | |
| layout (local_size_x=WORKGROUP_SIZE) in | |
| layout (std430, binding=1) buffer ParticleData | |
| uint | expand_bits (uint v) |
| uint | morton (uint x, uint y, uint z) |
| float | orderedUintToFloat (uint u) |
| void | main () |
Computes mortons over each particle in the simulation for LBVH construction.
Definition in file morton.comp.
| struct Particle |
| struct MortonEntry |
Definition at line 29 of file bounds.comp.
| Data Fields | ||
|---|---|---|
| uint | pid | |
| uint | morton | |
| #define BODY_COUNT 15000 |
Definition at line 9 of file morton.comp.
| #define MAX_NODES 45000 |
Definition at line 10 of file morton.comp.
| #define WORKGROUP_SIZE 128 |
Definition at line 11 of file morton.comp.
| layout | ( | local_size_x | = WORKGROUP_SIZE | ) |
References Particle::acc, layout(), mat, Particle::p_m, Particle::vel, and WORKGROUP_SIZE.
| layout | ( | std430 | , |
| binding | = 1 ) |
Definition at line 23 of file morton.comp.
References BODY_COUNT, and layout().
| uint expand_bits | ( | uint | v | ) |
Definition at line 59 of file morton.comp.
References expand_bits().
Referenced by expand_bits(), expand_bits(), morton(), and morton().
| uint morton | ( | uint | x, |
| uint | y, | ||
| uint | z ) |
Definition at line 68 of file morton.comp.
References expand_bits(), and morton().
Referenced by delta(), layout(), main(), morton(), and morton().
| float orderedUintToFloat | ( | uint | u | ) |
Definition at line 72 of file morton.comp.
References orderedUintToFloat().
Referenced by main(), and orderedUintToFloat().
| void main | ( | ) |
Definition at line 77 of file morton.comp.
References BODY_COUNT, clamp(), main(), morton(), and orderedUintToFloat().