Skip to content

Commit

Permalink
Add compute shader require to particle shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Apr 6, 2024
1 parent 6eeaadd commit 8ca9245
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/particle/depth-collisions.glsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#section COMPUTE_SHADER
#extension GL_ARB_compute_shader : require
#include (trial::trial "depth.glsl")

uniform sampler2D depth_tex;
Expand Down
1 change: 1 addition & 0 deletions data/particle/emit.glsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#section COMPUTE_SHADER
#extension GL_ARB_compute_shader : require

layout (local_size_x = EMIT_THREADS, local_size_y = 1, local_size_z = 1) in;
uniform sampler2D random_tex;
Expand Down
1 change: 1 addition & 0 deletions data/particle/kickoff.glsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#section COMPUTE_SHADER
#extension GL_ARB_compute_shader : require

layout (local_size_x = 1, local_size_y = 1, local_size_z = 1) in;

Expand Down
2 changes: 2 additions & 0 deletions data/particle/simulate.glsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#section COMPUTE_SHADER
#extension GL_ARB_compute_shader : require

layout (local_size_x = SIMULATE_THREADS, local_size_y = 1, local_size_z = 1) in;
#define FORCEFIELDS 32
uint field_count = 0;
Expand Down
1 change: 1 addition & 0 deletions data/particle/sort-inner.glsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#section COMPUTE_SHADER
#extension GL_ARB_compute_shader : require
//
// Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
//
Expand Down
1 change: 1 addition & 0 deletions data/particle/sort-simulate.glsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#section COMPUTE_SHADER
#extension GL_ARB_compute_shader : require

void particle_tick(uint id, inout Particle particle){
simulate_particle(particle);
Expand Down
1 change: 1 addition & 0 deletions data/particle/sort-step.glsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#section COMPUTE_SHADER
#extension GL_ARB_compute_shader : require
//
// Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
//
Expand Down
1 change: 1 addition & 0 deletions data/particle/sort.glsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#section COMPUTE_SHADER
#extension GL_ARB_compute_shader : require
//
// Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
//
Expand Down

0 comments on commit 8ca9245

Please sign in to comment.