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.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gpu/effect.h b/src/gpu/effect.h
index 6ed2c55..6fdb0f4 100644
--- a/src/gpu/effect.h
+++ b/src/gpu/effect.h
@@ -1,7 +1,9 @@
#pragma once
#include "gpu/gpu.h"
#include <algorithm>
+#include <map>
#include <memory>
+#include <string>
#include <vector>
class MainSequence;
@@ -112,6 +114,10 @@ class MainSequence {
void resize(int width, int height);
void shutdown();
+ // Auxiliary texture registry for inter-effect texture sharing
+ void register_auxiliary_texture(const char* name, int width, int height);
+ WGPUTextureView get_auxiliary_view(const char* name);
+
#if !defined(STRIP_ALL)
void simulate_until(float target_time, float step_rate, float bpm = 120.0f);
#endif /* !defined(STRIP_ALL) */
@@ -139,5 +145,13 @@ class MainSequence {
std::unique_ptr<Effect> passthrough_effect_;
+ struct AuxiliaryTexture {
+ WGPUTexture texture;
+ WGPUTextureView view;
+ int width;
+ int height;
+ };
+ std::map<std::string, AuxiliaryTexture> auxiliary_textures_;
+
void create_framebuffers(int width, int height);
};