Skip to content

Add a single "copy config and data" operation to FlexConfigBuffer - #490

Merged
mkeeter merged 1 commit into
mainfrom
combined-config-flex-copy
Sep 11, 2026
Merged

mkeeter merged 1 commit into
mainfrom
combined-config-flex-copy

Conversation

@mkeeter

@mkeeter mkeeter commented Sep 11, 2026

Copy link
Copy Markdown
Owner

This may be slightly more efficient!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Resizing the combined buffer no longer invalidates its cached bind group.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Combines color configuration and bytecode uploads into one GPU buffer write.

Changes:

  • Adds FlexConfigBuffer::write.
  • Updates pixel and voxel color rendering to use the combined upload.
  • Removes separate config and tape copy methods.
File summaries
File Description
fidget-wgpu/src/buf.rs Implements combined config/data writes.
fidget-wgpu/src/color.rs Exposes combined color-buffer upload.
fidget-wgpu/src/pixel/effects/mod.rs Uses combined upload for pixel coloring.
fidget-wgpu/src/voxel/effects/mod.rs Uses combined upload for voxel coloring.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread fidget-wgpu/src/color.rs Outdated
@mkeeter
mkeeter force-pushed the combined-config-flex-copy branch from cd97be8 to 8505899 Compare September 11, 2026 19:01
@mkeeter
mkeeter merged commit db0f6a1 into main Sep 11, 2026
14 checks passed
@mkeeter
mkeeter deleted the combined-config-flex-copy branch September 11, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants