Skip to content

v0.28.1: browser API compatibility stubs for gogpu integration#181

Merged
kolkov merged 1 commit into
mainfrom
release/v0.28.1
May 15, 2026
Merged

v0.28.1: browser API compatibility stubs for gogpu integration#181
kolkov merged 1 commit into
mainfrom
release/v0.28.1

Conversation

@kolkov
Copy link
Copy Markdown
Contributor

@kolkov kolkov commented May 15, 2026

Summary

  • FreeCommandBuffer no-op (browser GC handles cleanup)
  • HalDevice returns nil (no HAL layer on browser)
  • PresentWithDamage delegates to Present (browser ignores damage rects)
  • InstanceDescriptor.Flags type aligned to gputypes.InstanceFlags

Required for gogpu platform_browser.go to compile against wgpu browser backend.

Test plan

  • GOOS=js GOARCH=wasm go build .
  • go build ./... + go test ./...
  • golangci-lint run --timeout=5m — 0 issues
  • Cross-platform build (Linux, macOS)

FreeCommandBuffer no-op (browser GC handles cleanup).
HalDevice returns nil (no HAL layer on browser).
PresentWithDamage delegates to Present (browser ignores damage rects).
InstanceDescriptor.Flags type aligned to gputypes.InstanceFlags.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kolkov kolkov merged commit 90a487e into main May 15, 2026
11 checks passed
@kolkov kolkov deleted the release/v0.28.1 branch May 15, 2026 07:40
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