summaryrefslogtreecommitdiff
path: root/src/gpu/effects/post_process_helper.cc
diff options
context:
space:
mode:
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);