summaryrefslogtreecommitdiff
path: root/src/gpu/effects/distort_effect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/effects/distort_effect.cc')
-rw-r--r--src/gpu/effects/distort_effect.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/effects/distort_effect.cc b/src/gpu/effects/distort_effect.cc
index 994ee34..1f2b8fc 100644
--- a/src/gpu/effects/distort_effect.cc
+++ b/src/gpu/effects/distort_effect.cc
@@ -7,11 +7,11 @@
// --- DistortEffect ---
DistortEffect::DistortEffect(WGPUDevice device, WGPUQueue queue,
WGPUTextureFormat format)
- : device_(device), queue_(queue) {
+ : PostProcessEffect(device, queue) {
uniforms_ =
- gpu_create_buffer(device, sizeof(float) * 4,
+ gpu_create_buffer(device_, sizeof(float) * 4,
WGPUBufferUsage_Uniform | WGPUBufferUsage_CopyDst);
- pipeline_ = create_post_process_pipeline(device, format, distort_shader_wgsl);
+ pipeline_ = create_post_process_pipeline(device_, format, distort_shader_wgsl);
}
void DistortEffect::render(WGPURenderPassEncoder pass, float t, float b,
float i, float a) {