summaryrefslogtreecommitdiff
path: root/src/gpu/effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/effect.h')
-rw-r--r--src/gpu/effect.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/effect.h b/src/gpu/effect.h
index 70ba9be..47dd3c2 100644
--- a/src/gpu/effect.h
+++ b/src/gpu/effect.h
@@ -79,6 +79,13 @@ class Effect {
// consumer). Returns "" if no such effect exists or it has no outputs.
std::string find_downstream_output(const std::vector<EffectDAGNode>& dag) const;
+ // Helper: Run a fullscreen triangle pass (pipeline + bind_group → output)
+ static void run_fullscreen_pass(WGPUCommandEncoder encoder,
+ WGPURenderPipeline pipeline,
+ WGPUBindGroup bind_group,
+ WGPUTextureView output_view,
+ WGPULoadOp load_op = WGPULoadOp_Clear);
+
// Helper: Create linear sampler (call in subclass constructor if needed)
void create_linear_sampler();