diff options
Diffstat (limited to 'src/effects/particles_effect.cc')
| -rw-r--r-- | src/effects/particles_effect.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/effects/particles_effect.cc b/src/effects/particles_effect.cc index 22e41e9..d83f303 100644 --- a/src/effects/particles_effect.cc +++ b/src/effects/particles_effect.cc @@ -84,12 +84,8 @@ void Particles::render(WGPUCommandEncoder encoder, // Run render pass (draw particles to output) WGPUTextureView output_view = nodes.get_view(output_nodes_[0]); - WGPURenderPassColorAttachment color_attachment = { - .view = output_view, - .depthSlice = WGPU_DEPTH_SLICE_UNDEFINED, - .loadOp = WGPULoadOp_Clear, - .storeOp = WGPUStoreOp_Store, - .clearValue = {0.0, 0.0, 0.0, 1.0}}; + WGPURenderPassColorAttachment color_attachment = {}; + gpu_init_color_attachment(color_attachment, output_view); WGPURenderPassDescriptor render_desc = { .colorAttachmentCount = 1, .colorAttachments = &color_attachment}; |
