Skip to content

Commit

Permalink
add missing shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
tomadamatkinson committed Mar 4, 2024
1 parent 63eab0f commit b03c184
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions samples/performance/16bit_arithmetic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ add_sample(
"16bit_arithmetic/visualize.vert"
"16bit_arithmetic/visualize.frag"
"16bit_arithmetic/compute_buffer.comp"
"16bit_arithmetic/compute_buffer_fp16.comp"
)
3 changes: 3 additions & 0 deletions samples/performance/async_compute/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ add_sample(
NAME "Async compute"
DESCRIPTION "Using multiple queues to achieve more parallelism on the GPU."
SHADER_FILES_GLSL
"async_compute/threshold.comp"
"async_compute/blur_down.comp"
"async_compute/blur_up.comp"
"async_compute/forward.vert"
"async_compute/forward.frag"
"async_compute/shadow.vert"
Expand Down
6 changes: 4 additions & 2 deletions shaders/async_compute/blur_down.comp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@

// Downscale pass. Simple and naive :)



layout(local_size_x = 8, local_size_y = 8) in;

#include "async_compute/blur_common.h"
#include "./blur_common.h"

const float SCALE = 1.75;

Expand All @@ -33,4 +35,4 @@ void main()
vec3 rgb = bloom_blur(uv, SCALE);
imageStore(out_tex, ivec2(gl_GlobalInvocationID.xy), vec4(rgb, 1.0));
}
}
}
4 changes: 2 additions & 2 deletions shaders/async_compute/blur_up.comp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

layout(local_size_x = 8, local_size_y = 8) in;

#include "async_compute/blur_common.h"
#include "./blur_common.h"

const float SCALE = 0.875;

Expand All @@ -33,4 +33,4 @@ void main()
vec3 rgb = bloom_blur(uv, SCALE);
imageStore(out_tex, ivec2(gl_GlobalInvocationID.xy), vec4(rgb, 1.0));
}
}
}

0 comments on commit b03c184

Please sign in to comment.