summaryrefslogtreecommitdiff
path: root/src/effects/heptagon_effect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/heptagon_effect.cc')
-rw-r--r--src/effects/heptagon_effect.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/effects/heptagon_effect.cc b/src/effects/heptagon_effect.cc
index 27d59da..3321517 100644
--- a/src/effects/heptagon_effect.cc
+++ b/src/effects/heptagon_effect.cc
@@ -9,6 +9,11 @@ HeptagonEffect::HeptagonEffect(const GpuContext& ctx,
const std::vector<std::string>& inputs,
const std::vector<std::string>& outputs)
: Effect(ctx, inputs, outputs), pipeline_(nullptr), bind_group_(nullptr), sampler_(nullptr) {
+ // Headless mode: skip GPU resource creation
+ if (ctx_.device == nullptr) {
+ return;
+ }
+
// Init uniforms
uniforms_buffer_.init(ctx_.device);