Skip to content

Track: webgpu-headers upgrade in wgpu-native #3

@kolkov

Description

@kolkov

Summary

wgpu-native v27.0.4.0 uses outdated webgpu-headers (commit bac5208 from Nov 2024), which is 104 commits behind the current main branch.

This causes enum value mismatches between gputypes (follows current webgpu-headers) and wgpu-native.

Example: BGRA8Unorm is 27 in current headers but 23 in wgpu-native.

Current Workaround

We implemented a conversion layer in wgpu/convert.go to translate between gputypes and wgpu-native enum values.

Upstream Tracking

Blocker

PR #536 is blocked by CI issues on Android, iOS, and Windows i686 platforms.

Resolution

Once wgpu-native merges the header update:

  1. Update wgpu-native dependency
  2. Remove the conversion layer from wgpu/convert.go
  3. Simplify FFI structs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions