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/placeholder_effect.cc | |
| 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/placeholder_effect.cc')
| -rw-r--r-- | src/effects/placeholder_effect.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/effects/placeholder_effect.cc b/src/effects/placeholder_effect.cc index 6127e0c..73ee5a8 100644 --- a/src/effects/placeholder_effect.cc +++ b/src/effects/placeholder_effect.cc @@ -1,9 +1,9 @@ -// Placeholder effect v2 implementation - logs TODO warning once +// Placeholder effect implementation - logs TODO warning once #include "effects/placeholder_effect.h" #include "util/fatal_error.h" #include "gpu/post_process_helper.h" -#include "gpu/shaders.h" +#include "effects/shaders.h" #include <cstdio> Placeholder::Placeholder(const GpuContext& ctx, @@ -13,14 +13,14 @@ Placeholder::Placeholder(const GpuContext& ctx, : Effect(ctx, inputs, outputs), pipeline_(nullptr), bind_group_(nullptr), sampler_(nullptr), name_(placeholder_name) { // Log once on construction - fprintf(stderr, "TODO: %s not yet ported to v2, using passthrough\n", name_); + fprintf(stderr, "TODO: %s not yet implemented, using passthrough\n", name_); // Headless mode: skip GPU resource creation (compiled out in STRIP_ALL) HEADLESS_RETURN_IF_NULL(ctx_.device); uniforms_buffer_.init(ctx_.device); pipeline_ = create_post_process_pipeline(ctx_.device, WGPUTextureFormat_RGBA8Unorm, - passthrough_v2_shader_wgsl); + passthrough_shader_wgsl); WGPUSamplerDescriptor sampler_desc = {}; sampler_desc.addressModeU = WGPUAddressMode_ClampToEdge; |
