Skip to content

fix: struct-based TextureRegionUpdater.UpdateRegion (v0.31.1) - #35

Merged
kolkov merged 1 commit into
mainfrom
feat/484-update-region-struct-api
Aug 30, 2026
Merged

fix: struct-based TextureRegionUpdater.UpdateRegion (v0.31.1)#35
kolkov merged 1 commit into
mainfrom
feat/484-update-region-struct-api

Conversation

@lkmavi

@lkmavi lkmavi commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • go test ./...

Replace six positional int parameters with struct-based API aligned with
WebGPU GPUTexelCopyBufferLayout and Go image.Rectangle idiom (#484).
@lkmavi
lkmavi requested a review from kolkov as a code owner August 30, 2026 18:34
@codecov

codecov Bot commented Aug 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@lkmavi

lkmavi commented Aug 30, 2026

Copy link
Copy Markdown
Contributor Author

CI green. Ready for review/merge — gogpu/gogpu#486 rebased onto this struct API (pseudo-version pin until v0.31.1 tag).

@kolkov kolkov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. ImageDataLayout struct matches WebGPU GPUTexelCopyBufferLayout at the app level. Three distinct parameter types eliminate silent int-swap bugs. Zero value correct. Clean patch.

@kolkov
kolkov merged commit 103ca1b into main Aug 30, 2026
10 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