Skip to content

Tags: go-webgpu/webgpu

Tags

v0.5.5

Toggle v0.5.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore: prepare release v0.5.5 (#27)

v0.5.4

Toggle v0.5.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore: prepare release v0.5.4 (#26)

v0.5.3

Toggle v0.5.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
deps: update goffi v0.5.2 → v0.6.0, gputypes v0.5.0 → v0.5.1, x/sys v…

…0.42.0 → v0.47.0 (#22)

- goffi v0.6.0: assembly-level errno capture, callback stack safety fix, zero-alloc FFI
- Adapt to breaking change: CallFunction returns (syscall.Errno, error)
- Fix all golangci-lint issues: errcheck on Buffer.Unmap(), os.Remove, variable shadowing
- Update CHANGELOG.md, UPSTREAM.md

v0.5.2

Toggle v0.5.2's commit message
fix: setup tool enterprise hardening (13 issues from code review)

Security:
- HTTP timeout 120s (was: no timeout, hangs forever)
- dst.Close() error checked (was: unchecked, corrupted file on Windows)
- io.LimitReader 200MB decompression bomb protection (gosec G110)
- HTTP status code validation (was: no check for 404/500)

Correctness:
- macOS prints DYLD_LIBRARY_PATH (was: LD_LIBRARY_PATH)
- wgpu.Init() searches ./lib/ (auto-setup default location)
- filepath.Abs error handled with fallback

UX:
- Download progress with Content-Length (MB)
- README: WGPU_NATIVE_PATH instructions after setup

Code quality:
- Package doc comment for nativelib
- errcheck nolint directives with reasons
- SHA256 TODO for future checksum verification

Tests:
- Download() with httptest (happy path + 404 + network error)
- FindLibrary() with env var + lib/ dir search

v0.5.1

Toggle v0.5.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: auto-setup tool + docs update (v0.5.1)

Added cmd/setup — downloads correct wgpu-native v29 binary for current platform.
Public API in setup/ package: Install(), FindLibrary(), Version.
Implementation in internal/nativelib/ with tests (11 pass).

Updated README: auto-setup section, gogpu/wgpu integration section.
Updated CHANGELOG: v0.5.0 date fixed, v0.5.1 entry.
deps: goffi v0.5.0 → v0.5.2

v0.5.0

Toggle v0.5.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat!: v0.5.0 — wgpu-native v29 + full gogpu/wgpu API compatibility (#19

)

Closes #3. See CHANGELOG.md and MIGRATION.md for full details.

v0.4.3

Toggle v0.4.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
deps: update goffi v0.4.2 → v0.5.0, gputypes v0.2.0 → v0.3.0, x/sys v…

…0.41.0 → v0.42.0 (#18)

goffi: Windows ARM64 (Snapdragon X) + FreeBSD amd64 support
gputypes: TextureUsage.ContainsUnknownBits() method
x/sys: routine update

v0.4.2

Toggle v0.4.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
deps: update goffi v0.4.1 → v0.4.2, x/sys v0.40.0 → v0.41.0 (#16)

goffi: purego compatibility fix (nofakecgo build tag)
x/sys: routine update

v0.4.1

Toggle v0.4.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
deps: update goffi v0.4.0 → v0.4.1 (ABI compliance hotfix) (#13)

v0.4.0

Toggle v0.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: FFI null handle guards + go vet cleanup v0.4.0 (#12)

* feat: null handle guards + go vet cleanup + library error handling (#11)

- Add nil/zero-handle guards on all public FFI methods to prevent SIGSEGV
- Add ptrFromUintptr helper — eliminates all 15 go vet unsafe.Pointer warnings
- Add WGPU_NATIVE_PATH env var for custom library path override
- Change loadLibrary to return (Library, error) with descriptive messages
- Windows: eager DLL loading via dll.Load() for early error detection
- Add 85 null guard tests (CI-safe, no GPU required)
- Update CI test filters to include NullGuard tests

* ci: add wgpu-native download to CI, remove -unsafeptr=false workaround

- Download wgpu-native v27.0.4.0 for all platforms (Linux, macOS, Windows)
- NullGuard tests now run with real library in CI
- Remove go vet -unsafeptr=false (all warnings fixed via ptrFromUintptr)
- Add skipIfNoLibrary fallback for environments without wgpu-native