Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-webgpu/webgpu
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f8bbcbf
Choose a base ref
...
head repository: go-webgpu/webgpu
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5c78684
Choose a head ref
  • 1 commit
  • 29 files changed
  • 1 contributor

Commits on Feb 27, 2026

  1. 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
    kolkov authored Feb 27, 2026
    Configuration menu
    Copy the full SHA
    5c78684 View commit details
    Browse the repository at this point in the history
Loading