summaryrefslogtreecommitdiff
path: root/src/gpu/wgsl_effect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/wgsl_effect.cc')
-rw-r--r--src/gpu/wgsl_effect.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gpu/wgsl_effect.cc b/src/gpu/wgsl_effect.cc
index 4f658a5..4c5f7e2 100644
--- a/src/gpu/wgsl_effect.cc
+++ b/src/gpu/wgsl_effect.cc
@@ -13,8 +13,7 @@ WgslEffect::WgslEffect(const GpuContext& ctx,
WgslEffectParams initial_params,
WgslSamplerType sampler_type)
: Effect(ctx, inputs, outputs, start_time, end_time),
- effect_params(initial_params),
- load_op_(load_op) {
+ effect_params(initial_params), load_op_(load_op) {
HEADLESS_RETURN_IF_NULL(ctx_.device);
if (sampler_type == WgslSamplerType::Nearest)
@@ -23,9 +22,8 @@ WgslEffect::WgslEffect(const GpuContext& ctx,
create_linear_sampler();
params_buffer_.init(ctx_.device);
- pipeline_.set(create_post_process_pipeline(ctx_.device,
- WGPUTextureFormat_RGBA8Unorm,
- shader_code));
+ pipeline_.set(create_post_process_pipeline(
+ ctx_.device, WGPUTextureFormat_RGBA8Unorm, shader_code));
}
void WgslEffect::render(WGPUCommandEncoder encoder,