diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-09 10:44:17 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-09 10:44:17 +0100 |
| commit | 6a4279fb54d2254572f51044aa6388d659a84641 (patch) | |
| tree | 0f3ee675b7e607d0e3ccf0e5111fe03a65a7e966 /src | |
| parent | 70c64867baa30c83334559d3023153dfe3f9ff79 (diff) | |
fix: Increase dummy uniform buffer to 32 bytes for alignment
Related to Task #74. The dummy buffer used when effect_params is null
must be 32 bytes to match CommonPostProcessUniforms size, not 16 bytes.
Prevents potential validation errors when binding group expects 32-byte
uniform buffer at binding 3.
Diffstat (limited to 'src')
| -rw-r--r-- | src/gpu/effects/post_process_helper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/effects/post_process_helper.cc b/src/gpu/effects/post_process_helper.cc index 4c1d3e1..74e052d 100644 --- a/src/gpu/effects/post_process_helper.cc +++ b/src/gpu/effects/post_process_helper.cc @@ -74,7 +74,7 @@ void pp_update_bind_group(WGPUDevice device, WGPURenderPipeline pipeline, WGPUBindGroup* bind_group, WGPUTextureView input_view, GpuBuffer uniforms, GpuBuffer effect_params) { if (!g_dummy_buffer.buffer) { - g_dummy_buffer = gpu_create_buffer(device, 16, WGPUBufferUsage_Uniform); + g_dummy_buffer = gpu_create_buffer(device, 32, WGPUBufferUsage_Uniform); } if (*bind_group) |
