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.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gpu/effect.h b/src/gpu/effect.h
index 006ee6f..725c020 100644
--- a/src/gpu/effect.h
+++ b/src/gpu/effect.h
@@ -9,7 +9,7 @@ class PostProcessEffect;
class Effect {
public:
- Effect(const GpuContext& ctx) : device_(ctx.device), queue_(ctx.queue), format_(ctx.format) {
+ Effect(const GpuContext& ctx) : ctx_(ctx) {
}
virtual ~Effect() = default;
virtual void init(MainSequence* demo) {
@@ -40,9 +40,7 @@ class Effect {
}
protected:
- WGPUDevice device_;
- WGPUQueue queue_;
- WGPUTextureFormat format_;
+ const GpuContext& ctx_;
GpuBuffer uniforms_;
int width_ = 1280;
int height_ = 720;