summaryrefslogtreecommitdiff
path: root/src/gpu/effects/post_process_helper.h
blob: 098687b2a9a0edca2a1f7cbf0bfaff5c68f5f03c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This file is part of the 64k demo project.
// It declares helper functions for post-processing effects.

#pragma once

#include "gpu/gpu.h"
#include <webgpu.h>

// Helper to create a standard post-processing pipeline
WGPURenderPipeline create_post_process_pipeline(WGPUDevice device, WGPUTextureFormat format,
                                                const char* shader_code);

// Helper to update bind group for post-processing effects
void pp_update_bind_group(WGPUDevice device, WGPURenderPipeline pipeline,
                          WGPUBindGroup* bind_group, WGPUTextureView input_view,
                          GpuBuffer uniforms);