|
Space Sim
|
Computes the bounds over all particles in the sim. 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 | floatToOrderedUint (float f) |
| void | main () |
Variables | |
| shared float | localMinX [WORKGROUP_SIZE] |
| shared float | localMinY [WORKGROUP_SIZE] |
| shared float | localMinZ [WORKGROUP_SIZE] |
| shared float | localMaxX [WORKGROUP_SIZE] |
| shared float | localMaxY [WORKGROUP_SIZE] |
| shared float | localMaxZ [WORKGROUP_SIZE] |
Computes the bounds over all particles in the sim.
Definition in file bounds.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 7 of file bounds.comp.
| #define MAX_NODES 45000 |
Definition at line 8 of file bounds.comp.
| #define WORKGROUP_SIZE 128 |
Definition at line 10 of file bounds.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 19 of file bounds.comp.
References BODY_COUNT, and layout().
| uint floatToOrderedUint | ( | float | f | ) |
Definition at line 51 of file bounds.comp.
References floatToOrderedUint().
Referenced by floatToOrderedUint(), and main().
| void main | ( | ) |
Definition at line 64 of file bounds.comp.
References BODY_COUNT, floatToOrderedUint(), localMaxX, localMaxY, localMaxZ, localMinX, localMinY, localMinZ, main(), Particle::p_m, WORKGROUP_SIZE, vec4::x, vec4::y, and vec4::z.
| shared float localMinX[WORKGROUP_SIZE] |
Definition at line 57 of file bounds.comp.
Referenced by main().
| shared float localMinY[WORKGROUP_SIZE] |
Definition at line 58 of file bounds.comp.
Referenced by main().
| shared float localMinZ[WORKGROUP_SIZE] |
Definition at line 59 of file bounds.comp.
Referenced by main().
| shared float localMaxX[WORKGROUP_SIZE] |
Definition at line 60 of file bounds.comp.
Referenced by main().
| shared float localMaxY[WORKGROUP_SIZE] |
Definition at line 61 of file bounds.comp.
Referenced by main().
| shared float localMaxZ[WORKGROUP_SIZE] |
Definition at line 62 of file bounds.comp.
Referenced by main().