Repository navigation
v0.35.4
A PATCH release: public adapter enumeration, and a software linear-filter fix at repeating-texture edges.
Public adapter enumeration (#360)
func (i *Instance) EnumerateAdapters() []*AdapterLists every adapter the instance knows, in registration order, each a live adapter: read Info, Features, Limits, DownlevelCapabilities, or call RequestDevice on the chosen one — so a program can select a specific GPU instead of accepting the power-preference pick (the multi-GPU case from the issue). RequestAdapter ranks the same candidates by power preference and may pick a different one; it is unchanged.
The contract, documented at the declaration: a snapshot of what the instance registered (GPUs added later do not appear, an adapter that disappears fails cleanly at RequestDevice); an empty list is a normal answer, never an error; adapters are owned by the instance and Release on a returned handle marks only the wrapper; the software backend stays explicit-only in the mask and a force-fallback request adds nothing; the GLES backend's non-openable placeholder — the one that keeps a surface-less request failing at Open with its descriptive error — is never enumerated.
Per build: the native build enumerates for real; the browser build returns at most one adapter (the browser API has no enumeration; the same shape as Rust wgpu's web backend); -tags rust returns none and logs the gap once until go-webgpu/webgpu binds wgpu-native's wgpuInstanceEnumerateAdapters.
Software linear filtering at the texture edge (#438, thanks @dvoyni)
The linear filter wrapped the sample coordinate once and then clamped its 2×2 footprint to the image, so under repeat a tiled texture showed a seam where it should blend across the edge; each texel of the footprint is now wrapped on its own, as compareLevel already did, matching the address-mode model the spec describes and the hardware backends already follow. Clamped and mirrored modes read the edge texel as before; 3D sampling is unchanged.
Also
- actions/setup-go 7.1.0 (dependabot).
Full changelog: https://github.com/gogpu/wgpu/blob/main/CHANGELOG.md