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

Zeros out the min and the max before computing the bounds over all particles. More...

Go to the source code of this file.

Data Structures

struct  Particle
struct  Node

Macros

#define BODY_COUNT   15000
#define MAX_NODES   45000
#define WORKGROUP_SIZE   128
#define MAX_DEPTH   64

Functions

 layout (local_size_x=WORKGROUP_SIZE) in
 layout (std430, binding=1) buffer ParticleData
uint floatToOrderedUint (float f)
void main ()

Detailed Description

Zeros out the min and the max before computing the bounds over all particles.

Definition in file zero.comp.


Data Structure Documentation

◆ Particle

struct Particle

Definition at line 7 of file main.h.

Data Fields
vec3 pos
vec3 vel
vec4 p_m
vec4 mat
vec4 vel
vec4 acc

◆ Node

struct Node

Definition at line 108 of file types.h.

Data Fields
vec3 center_of_mass
vec3 center
float mass
int first_child
bool subdivided
float half_size
int body_index
vec4 com_m
vec4 min
vec3 max
int next
ivec4 lrpd

Macro Definition Documentation

◆ BODY_COUNT

#define BODY_COUNT   15000

Definition at line 8 of file zero.comp.

◆ MAX_NODES

#define MAX_NODES   45000

Definition at line 9 of file zero.comp.

◆ WORKGROUP_SIZE

#define WORKGROUP_SIZE   128

Definition at line 11 of file zero.comp.

◆ MAX_DEPTH

#define MAX_DEPTH   64

Definition at line 51 of file zero.comp.

Function Documentation

◆ layout() [1/2]

layout ( local_size_x = WORKGROUP_SIZE)

◆ layout() [2/2]

layout ( std430 ,
binding = 1 )

Definition at line 21 of file zero.comp.

References BODY_COUNT, and layout().

◆ floatToOrderedUint()

uint floatToOrderedUint ( float f)

Definition at line 71 of file zero.comp.

References floatToOrderedUint().

◆ main()

void main ( )

Definition at line 77 of file zero.comp.

References floatToOrderedUint(), and main().