Skip to content

Implement wgpuCommandEncoderClearTexture#580

Merged
cwfitzgerald merged 3 commits intogfx-rs:trunkfrom
lisyarus:implement-clear-texture
Apr 29, 2026
Merged

Implement wgpuCommandEncoderClearTexture#580
cwfitzgerald merged 3 commits intogfx-rs:trunkfrom
lisyarus:implement-clear-texture

Conversation

@lisyarus
Copy link
Copy Markdown
Contributor

@lisyarus lisyarus commented Apr 16, 2026

Checklist

  • cargo clippy reports no issues
  • cargo doc reports no issues
  • cargo deny issues have been fixed or added to deny.toml
  • Human-readable change descriptions added to CHANGELOG.md under the "Unreleased" heading.
    • If the change does not affect the user (or is a process change), preface the change with "Internal:"
    • Add credit to yourself for each change: Added new functionality. @githubname

Description

Implemented wgpuCommandEncoderClearTexture, and uncommented the ClearTexture feature.
I added a WGPUImageSubresourceRange struct to wgpu.h which mimicks the same struct in wgpu. I didn't find anything else that has the same/similar fields (e.g. WGPUTexelCopyTextureInfo and such don't cut it), so I added a new struct.

Copy link
Copy Markdown
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@cwfitzgerald cwfitzgerald merged commit 28798f9 into gfx-rs:trunk Apr 29, 2026
34 checks passed
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