diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-17 08:12:05 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-17 08:12:05 +0100 |
| commit | 50350344d289c3389161cd6914c57f88d1a04dcc (patch) | |
| tree | 5394a9b7781e3ccbbd332af8b043ea28d9d6a99f /src/effects/shaders.h | |
| parent | fef8f1a9b7ff513963fbcae7590c24f95a06081c (diff) | |
refactor: move shaders.{h,cc} to src/effects and remove v2 suffix
- Removed unused v1 shader declarations (13 variables)
- Removed _v2 suffix from active shader names
- Moved shaders.{h,cc} from src/gpu to src/effects
- Updated all includes and build references
- All tests pass (34/34)
handoff(Claude): Cleaned up shader management, tests passing
Diffstat (limited to 'src/effects/shaders.h')
| -rw-r--r-- | src/effects/shaders.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/effects/shaders.h b/src/effects/shaders.h new file mode 100644 index 0000000..b8700f5 --- /dev/null +++ b/src/effects/shaders.h @@ -0,0 +1,25 @@ +// This file is part of the 64k demo project. +// It declares the WGSL shader strings and initialization function. + +#pragma once + +// Initializes the ShaderComposer with snippet assets. +void InitShaderComposer(); + +// Effect shaders +extern const char* passthrough_shader_wgsl; +extern const char* gaussian_blur_shader_wgsl; +extern const char* heptagon_shader_wgsl; +extern const char* particle_compute_wgsl; +extern const char* particle_render_wgsl; +extern const char* rotating_cube_wgsl; +extern const char* flash_shader_wgsl; + +// Compute shaders +extern const char* gen_noise_compute_wgsl; +extern const char* gen_perlin_compute_wgsl; +extern const char* gen_grid_compute_wgsl; +#if !defined(STRIP_GPU_COMPOSITE) +extern const char* gen_blend_compute_wgsl; +extern const char* gen_mask_compute_wgsl; +#endif |
