Skip to content

fix: migrate source code to wgpu 29.0.0 API#350

Merged
telecos merged 3 commits intodependabot/cargo/wgpu-29.0.0from
copilot/sub-pr-347
Mar 23, 2026
Merged

fix: migrate source code to wgpu 29.0.0 API#350
telecos merged 3 commits intodependabot/cargo/wgpu-29.0.0from
copilot/sub-pr-347

Conversation

Copy link
Contributor

Copilot AI commented Mar 23, 2026

Multiple breaking API changes in wgpu 29.0.0 caused build failures across the workspace. This PR updates all call sites to match the new API.

Dependency

  • Bumped wgpu-core and wgpu-types from 28.029.0 in Cargo.toml (eliminates version conflict with wgpu 29's own transitive deps)

Breaking API changes addressed

  • Instance::new now takes owned InstanceDescriptor (not &T); InstanceDescriptor no longer implements Default — replaced ..Default::default() with ..wgpu::InstanceDescriptor::new_without_display_handle()

  • get_current_texture returns CurrentSurfaceTexture enum instead of Result<SurfaceTexture, SurfaceError>. Introduced a local RenderError enum mapping Lost/Outdated → reconfigure and Timeout/Occluded/Validation → skip frame:

    match self.surface.get_current_texture() {
        CurrentSurfaceTexture::Success(t) | CurrentSurfaceTexture::Suboptimal(t) => t,
        CurrentSurfaceTexture::Outdated | CurrentSurfaceTexture::Lost =>
            return Err(RenderError::SurfaceReconfigure),
        CurrentSurfaceTexture::Timeout | CurrentSurfaceTexture::Occluded
        | CurrentSurfaceTexture::Validation => return Ok(()),
    }
  • PipelineLayoutDescriptor::bind_group_layouts type changed from &[&BindGroupLayout]&[Option<&BindGroupLayout>]

  • DepthStencilState fields depth_write_enabled and depth_compare are now Option<bool> and Option<CompareFunction> respectively

  • Features::SHADER_PRIMITIVE_INDEX renamed to Features::PRIMITIVE_INDEX

  • Limits: max_uniform_buffer_binding_size and max_storage_buffer_binding_size changed from u32u64; max_inter_stage_shader_components renamed to max_inter_stage_shader_variables


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

dependabot bot and others added 2 commits March 23, 2026 21:51
Bumps [wgpu](https://github.com/gfx-rs/wgpu) from 28.0.0 to 29.0.0.
- [Release notes](https://github.com/gfx-rs/wgpu/releases)
- [Changelog](https://github.com/gfx-rs/wgpu/blob/trunk/CHANGELOG.md)
- [Commits](gfx-rs/wgpu@v28.0.0...v29.0.0)

---
updated-dependencies:
- dependency-name: wgpu
  dependency-version: 29.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/wgpu-29.0.0 branch 2 times, most recently from a148be1 to 970121b Compare March 23, 2026 22:16
Copy link
Contributor Author

Copilot AI commented Mar 23, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dawn.googlesource.com
    • Triggering command: /usr/lib/git-core/git-remote-https /usr/lib/git-core/git-remote-https origin REDACTED -o /tmp/codeql-scratch-2cc7a3ce60867622/dbs/rust/working/target/debug/build/alloca-6c6af4dd8d7f698f/out/db3b6bfb95261072-alloca.o ayground_core-ae40aaa0a37678c3/rustcgy1OVU/symbols.o ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.0e28atfoalzup1f1m5ri3mdq0.0xxqu6k.rcgu.o ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.0jkbrai4lgu44hwsbcpfe53tz.0xxqu6k.rcgu.o ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.0maydu8lzc1qhpeejx1yfr5ds.0xxqu6k.rcgu.o ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.15v6ilv4mzc6wtntb�� ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.1lurukuo76kczcf7y28dshus2.0xxqu6k.rcgu.o ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.1tpj31yimvrrws3lrrj4b2npl.0xxqu6k.rcgu.o ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.1w965550cghbkcl41o14smxku.0xxqu6k.rcgu.o ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.23xwzc8alz0rrb26o5e7z9non.0xxcmake ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.2gvwduoxseyqdmroqpia6lrxe.0xx--version ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.2i0swa4qb9t49qjvivshal3su.0xxqu6k.rcgu.o ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.2qucrrrb6lz6zmfqax9n2e87l.0xxqu6k.rcgu.o ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.2sqf0uk4f1jh9z2s6yvin5pqq.0xxqu6k.rcgu.o ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.2vg7g6euuvnj9hmiklc23kwm2.0xxqu6k.rcgu.o ayground_core-ae40aaa0a37678c3/build_script_build-ae40aaa0a37678c3.2zc0s10ofp6jaaviuthct5nxw.0xxqu6k.rcgu.o (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Update wgpu dependency from 28.0.0 to 29.0.0 fix: migrate source code to wgpu 29.0.0 API Mar 23, 2026
Copilot AI requested a review from telecos March 23, 2026 22:25
@telecos telecos marked this pull request as ready for review March 23, 2026 22:35
@telecos telecos merged commit 73b0192 into dependabot/cargo/wgpu-29.0.0 Mar 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants