summaryrefslogtreecommitdiff
path: root/src/gpu/effects/post_process_helper.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-01 01:47:41 +0100
committerskal <pascal.massimino@gmail.com>2026-02-01 01:47:41 +0100
commitb2d4d2cd06e28b012115bdafaa0bd015888d5452 (patch)
treee1fd467dff6fead734cfbf366ce4df7085dc5efb /src/gpu/effects/post_process_helper.cc
parente6e34e551a73e65301685071445aaec9aaf60fd2 (diff)
Chore: Apply clang-format to the codebase
Diffstat (limited to 'src/gpu/effects/post_process_helper.cc')
-rw-r--r--src/gpu/effects/post_process_helper.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gpu/effects/post_process_helper.cc b/src/gpu/effects/post_process_helper.cc
index 7c64844..db89d77 100644
--- a/src/gpu/effects/post_process_helper.cc
+++ b/src/gpu/effects/post_process_helper.cc
@@ -6,9 +6,9 @@
#include <cstring>
// Helper to create a standard post-processing pipeline
-WGPURenderPipeline
-create_post_process_pipeline(WGPUDevice device, WGPUTextureFormat format,
- const char* shader_code) {
+WGPURenderPipeline create_post_process_pipeline(WGPUDevice device,
+ WGPUTextureFormat format,
+ const char* shader_code) {
WGPUShaderModuleDescriptor shader_desc = {};
WGPUShaderSourceWGSL wgsl_src = {};
wgsl_src.chain.sType = WGPUSType_ShaderSourceWGSL;
@@ -63,9 +63,8 @@ create_post_process_pipeline(WGPUDevice device, WGPUTextureFormat format,
// --- PostProcess Implementation Helper ---
void pp_update_bind_group(WGPUDevice device, WGPURenderPipeline pipeline,
- WGPUBindGroup* bind_group,
- WGPUTextureView input_view,
- GpuBuffer uniforms) {
+ WGPUBindGroup* bind_group, WGPUTextureView input_view,
+ GpuBuffer uniforms) {
if (*bind_group)
wgpuBindGroupRelease(*bind_group);
WGPUBindGroupLayout bgl = wgpuRenderPipelineGetBindGroupLayout(pipeline, 0);