Skip to content

chore: GoGPU Ecosystem Integration Phase 1 (v0.7.8)#27

Merged
kolkov merged 1 commit intomainfrom
chore/gogpu-phase1-v0.7.8
Jan 29, 2026
Merged

chore: GoGPU Ecosystem Integration Phase 1 (v0.7.8)#27
kolkov merged 1 commit intomainfrom
chore/gogpu-phase1-v0.7.8

Conversation

@kolkov
Copy link
Contributor

@kolkov kolkov commented Jan 29, 2026

Summary

Migrate WebGPU backend to unified gputypes for future dual-backend support (Rust FFI + Pure Go).

Release Version: v0.7.8 (PATCH - dependency updates)

Updated Dependencies

Package Old New
go-webgpu/webgpu v0.1.4 v0.2.1
go-webgpu/goffi v0.3.7 v0.3.8
gogpu/gputypes - v0.2.0 (new)
dlclark/regexp2 v1.10.0 v1.11.5
google/uuid v1.3.0 v1.6.0

Changes

  • Migrated all wgpu.BufferUsage*gputypes.BufferUsage*
  • Migrated all wgpu.PowerPreference*gputypes.PowerPreference*
  • Updated 10 files in internal/backend/webgpu/
  • Fixed 3 prealloc linter warnings

Why This Matters

Prepares codebase for dual-backend architecture:

go build ./...                  # Rust FFI (default)
go build -tags purego ./...     # Pure Go (zero deps)

Test Plan

  • go build ./... passes
  • golangci-lint run ./... - 0 issues
  • All tests pass

Related Tasks

  • TASK-112: gputypes migration ✅
  • TASK-113: Research & Benchmarks (backlog)
  • TASK-114: Dual Backend Implementation (backlog)

- go-webgpu/webgpu v0.1.4 → v0.2.1
- go-webgpu/goffi v0.3.7 → v0.3.8
- gogpu/gputypes v0.2.0 (new)
- dlclark/regexp2 v1.10.0 → v1.11.5
- google/uuid v1.3.0 → v1.6.0

Migration:
- All wgpu.BufferUsage* → gputypes.BufferUsage*
- All wgpu.PowerPreference* → gputypes.PowerPreference*
- 10 files in internal/backend/webgpu/ updated

Fixes:
- 3 prealloc linter warnings
@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kolkov kolkov merged commit f77fdf2 into main Jan 29, 2026
9 checks passed
@kolkov kolkov deleted the chore/gogpu-phase1-v0.7.8 branch January 29, 2026 15:30
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.

1 participant