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

Spawns new particles from accretion - unused. More...

Go to the source code of this file.

Data Structures

struct  Particle
struct  MortonEntry
struct  Node

Macros

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

Functions

 layout (local_size_x=128) in
 layout (std430, binding=1) buffer ParticleData
void main ()

Variables

uniform int frame

Detailed Description

Spawns new particles from accretion - unused.

Definition in file spawn.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

◆ MortonEntry

struct MortonEntry

Definition at line 29 of file bounds.comp.

Data Fields
uint pid
uint morton

◆ 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 10 of file spawn.comp.

◆ MAX_NODES

#define MAX_NODES   45000

Definition at line 11 of file spawn.comp.

◆ MAX_DEPTH

#define MAX_DEPTH   64

Definition at line 49 of file spawn.comp.

Function Documentation

◆ layout() [1/2]

layout ( local_size_x = 128)

References layout().

◆ layout() [2/2]

layout ( std430 ,
binding = 1 )

Definition at line 19 of file spawn.comp.

References BODY_COUNT, and layout().

◆ main()

void main ( )

Definition at line 70 of file spawn.comp.

References BODY_COUNT, and main().

Variable Documentation

◆ frame

uniform int frame

Definition at line 9 of file spawn.comp.