summaryrefslogtreecommitdiff
path: root/src/gpu/effects/passthrough_effect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/effects/passthrough_effect.cc')
-rw-r--r--src/gpu/effects/passthrough_effect.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gpu/effects/passthrough_effect.cc b/src/gpu/effects/passthrough_effect.cc
index 01d557a..aedb387 100644
--- a/src/gpu/effects/passthrough_effect.cc
+++ b/src/gpu/effects/passthrough_effect.cc
@@ -11,14 +11,7 @@ PassthroughEffect::PassthroughEffect(const GpuContext& ctx)
passthrough_shader_wgsl);
}
void PassthroughEffect::update_bind_group(WGPUTextureView input_view) {
- const CommonPostProcessUniforms u = {
- .resolution = {(float)width_, (float)height_},
- .aspect_ratio = 1.0f,
- .time = 0.0f,
- .beat = 0.0f,
- .audio_intensity = 0.0f,
- };
- uniforms_.update(ctx_.queue, u);
+ uniforms_.update(ctx_.queue, get_common_uniforms());
pp_update_bind_group(ctx_.device, pipeline_, &bind_group_, input_view,
uniforms_.get(), {});
}