Skip to content

feat: add TextureUpdater interface for dynamic texture updates#7

Merged
kolkov merged 1 commit intomainfrom
feat/texture-updater
Feb 5, 2026
Merged

feat: add TextureUpdater interface for dynamic texture updates#7
kolkov merged 1 commit intomainfrom
feat/texture-updater

Conversation

@kolkov
Copy link
Contributor

@kolkov kolkov commented Feb 5, 2026

Summary

  • Add TextureUpdater interface with UpdateData(data []byte) error signature
  • Enables proper error handling for dynamic texture content (canvas rendering, video frames)
  • Resolves gg#79 — ggcanvas texture updates silently failing due to interface mismatch
  • Update CHANGELOG (v0.7.0 + missing v0.6.0 entry) and README

Test plan

  • go build ./... passes
  • go test ./... passes
  • golangci-lint run — 0 issues
  • CI validates cross-platform (Linux, macOS, Windows)

- TextureUpdater with UpdateData([]byte) error signature
- Enables proper error handling for canvas rendering, video frames
- Implemented by gogpu.Texture (compile-time checked)
- Resolves gg#79
@codecov
Copy link

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kolkov kolkov merged commit 08c9b2a into main Feb 5, 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.

fix(ggcanvas): texture never updates — interface signature mismatch

1 participant