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, 4 insertions, 3 deletions
diff --git a/src/gpu/effect.h b/src/gpu/effect.h
index 82aa6e1..d47a8b7 100644
--- a/src/gpu/effect.h
+++ b/src/gpu/effect.h
@@ -7,6 +7,7 @@
#include "gpu/gpu.h"
#include "gpu/sequence.h"
#include "gpu/uniform_helper.h"
+#include "gpu/wgpu_resource.h"
#include <string>
#include <vector>
@@ -54,9 +55,9 @@ class Effect {
// Common resources for most effects
UniformBuffer<UniformsSequenceParams> uniforms_buffer_;
- WGPUSampler sampler_ = nullptr;
- WGPUTexture dummy_texture_ = nullptr;
- WGPUTextureView dummy_texture_view_ = nullptr;
+ Sampler sampler_;
+ Texture dummy_texture_;
+ TextureView dummy_texture_view_;
// Helper: Initialize uniforms buffer (call in subclass constructor)
void init_uniforms_buffer();