diff options
| author | skal <pascal.massimino@gmail.com> | 2026-05-21 08:10:47 +0200 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-05-21 08:10:47 +0200 |
| commit | d806027dcaeadcdd8d2febd88bc46b2fd2c465de (patch) | |
| tree | 30bc1ef9f40ccab7c00e31ee20e62bb86755fa26 /src/gpu/wgsl_effect.cc | |
| parent | 680042a18c11ad5e58757e45b260745c2f52417f (diff) | |
Diffstat (limited to 'src/gpu/wgsl_effect.cc')
| -rw-r--r-- | src/gpu/wgsl_effect.cc | 8 |
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, |
