Tags: go-webgpu/webgpu
Tags
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
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
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
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
PreviousNext