Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.30.0] - 2026-08-30

### Added

- **`DeviceProvider.DownlevelCapabilities()`** — returns `gputypes.DownlevelCapabilities` for backend capability queries. Enables consumers (gg, g3d, Born ML) to check compute support, indirect execution, and other capabilities that may be absent on non-conformant backends (GLES 3.0, CPU software). Returns zero-value if implementation does not track downlevel capabilities (backward compatible). Matches Rust wgpu `Adapter::get_downlevel_capabilities()` pattern. Architecture: DeviceProvider interface method, not type-assert — follows Flutter Impeller "check capabilities, not backend type" principle. See ADR-071.

### Changed

- **deps:** gputypes v0.6.0 → v0.7.0 (DownlevelCapabilities types)

## [0.29.0] - 2026-08-27

### Added
Expand Down
8 changes: 8 additions & 0 deletions device_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,12 @@ type DeviceProvider interface {
// without importing wgpu. Returns 0 if the implementation does not
// track features (backward compatible — treat as no optional features).
Features() gputypes.Features

// DownlevelCapabilities returns backend capability flags for downlevel adapters.
// Consumers (e.g., gg) use this to query compute support, indirect execution,
// and other capabilities that may not be available on all backends (GLES 3.0).
// Returns zero-value DownlevelCapabilities if the implementation does not
// track downlevel capabilities (backward compatible — treat as no capabilities).
// Matches Rust wgpu Adapter::get_downlevel_capabilities() (adapter.rs:174).
DownlevelCapabilities() gputypes.DownlevelCapabilities
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/gogpu/gpucontext

go 1.25

require github.com/gogpu/gputypes v0.6.0
require github.com/gogpu/gputypes v0.7.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/gogpu/gputypes v0.6.0 h1:nfjx0ek0jU97ziHmukJgUJZBzlTlls9hsnEeqIEZUxM=
github.com/gogpu/gputypes v0.6.0/go.mod h1:cnXrDMwTpWTvJLW1Vreop3PcT6a2YP/i3s91rPaOavw=
github.com/gogpu/gputypes v0.7.0 h1:1IcXGyPx8v6iAutpjwBYjcyYd3g6ep+FhThoZbhpVAg=
github.com/gogpu/gputypes v0.7.0/go.mod h1:cnXrDMwTpWTvJLW1Vreop3PcT6a2YP/i3s91rPaOavw=
Loading