---
title: "wgpu 31.0.0 Breaking Changes on crates.io | Since.dev"
description: "What each wgpu release removed, renamed or changed: 67 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/wgpu
last_updated: 2026-12-04
---

# wgpu breaking changes

wgpu 31.0.0 (December 4, 2026) is its newest release with breaking changes, 67 of them. The first: Removed CreateBlasError.InvalidAabbStride. Every breaking API change we have recorded in wgpu on crates.io: 67 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `31.0.1`, released December 5, 2026. [Source repository](https://github.com/gfx-rs/wgpu)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

## wgpu 31.0.0 breaking changes

wgpu 31.0.0, released December 4, 2026: 67 breaking changes.

- **Removed** `CreateBlasError.InvalidAabbStride`  

Removed CreateBlasError::InvalidAabbStride variant in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `DepthStencilState.is_read_only`  

DepthStencilState::is_read_only removed in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `DownlevelFlags.SHADER_F16_IN_F32`  

DownlevelFlags::SHADER_F16_IN_F32 removed in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `Instance.generate_report`  

Instance::generate_report removed in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `parking_lot`  

The feature no longer exists, so remove it from your wgpu feature list. wgpu now always uses parking_lot for its locks when std is enabled. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `TextureUses.DEPTH_STENCIL_READ`  

TextureUses::DEPTH_STENCIL_READ replaced in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `TextureUses.DEPTH_STENCIL_WRITE`  

TextureUses::DEPTH_STENCIL_WRITE replaced in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `VULKAN_EXTERNAL_MEMORY_DMA_BUF`  

VULKAN_EXTERNAL_MEMORY_DMA_BUF feature removed in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `VULKAN_EXTERNAL_MEMORY_FD`  

VULKAN_EXTERNAL_MEMORY_FD feature removed in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `VULKAN_EXTERNAL_MEMORY_WIN32`  

VULKAN_EXTERNAL_MEMORY_WIN32 feature removed in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `VULKAN_GOOGLE_DISPLAY_TIMING`  

VULKAN_GOOGLE_DISPLAY_TIMING feature removed in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `wgpu_hal.gles.Instance.egl_config`  

gles Instance::egl_config removed in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Removed** `wgpu::custom::BufferMappedRangeInterface::len`  

wgpu::custom::BufferMappedRangeInterface::len was removed in wgpu 31.0.0 [crates.io](https://crates.io/crates/wgpu/31.0.0)
- **Renamed** `BlendFactor.ref_second_blend_source`  

BlendFactor::ref_second_blend_source renamed in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Renamed** `TextureFormat.is_srgb`  

TextureFormat::is_srgb renamed to has_srgb_suffix in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Renamed** `wgpu_hal.vulkan.Device.texture_from_d3d11_shared_handle`  

Vulkan texture_from_d3d11_shared_handle renamed in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed**  

@interpolate(linear) needs LINEAR_INTERPOLATION capability in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed**  

SPIR-V cube sample NaN coordinates become zero in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed**  

WGSL f64 requires enable wgpu_f64 directive in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `Buffer.destroy`  

Buffer::destroy now panics if a BufferView or BufferViewMut is alive. Drop views before destroying the buffer. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `Buffer.unmap`  

Buffer::unmap no longer raises validation errors in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `clear_texture`  

clear_texture rejects partial aspect clears in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `Device.create_shader_module`  

Shader validation errors omit source text in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `Device.destroy`  

Device::destroy now panics if a BufferView or BufferViewMut is alive. Drop views before destroying the device. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `Device.poll`  

Device::poll with Wait returns CantWait on WebGPU in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `DownlevelFlags.compliant`  

DownlevelFlags::compliant no longer includes SURFACE_VIEW_FORMATS in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `get_mapped_range`  

get_mapped_range now returns an error for buffers mapped with MapMode::Write, including mapped_at_creation buffers. Use get_mapped_range_mut for these. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `get_mapped_range_mut`  

get_mapped_range_mut now returns an error for buffers mapped with MapMode::Read. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `request_adapter`  

request_adapter errors in strict mode after adapter reuse in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `request_device`  

request_device enables CORE_FEATURES_AND_LIMITS when supported in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `Surface.configure`  

Surface::configure destroys live SurfaceTexture in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Behavior changed** `wgpu.CompositeAlphaMode.PostMultiplied`  

Metal surfaces no longer advertise PostMultiplied, so configuring with it fails with UnsupportedAlphaMode. Use PreMultiplied instead. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Default changed** `max_binding_array_sampler_elements_per_shader_stage`  

Metal sampler binding array limit reduced to 996 in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `BufferUsages`  

BufferUsages composed of WebGPU and WGPU parts [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `Device.create_texture_from_hal`  

create_texture_from_hal takes a new cleared argument in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `DeviceDescriptor`  

Struct literals of DeviceDescriptor must now set the new default_queue field of type QueueDescriptor. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `DeviceDescriptor.map_label`  

DeviceDescriptor::map_label takes Fn instead of FnOnce in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `hal.Queue.present`  

hal::Queue::present gained damage_rects parameter in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `Instance.from_core`  

Instance::from_core takes an Arc in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `naga.ir.Expression.As`  

Expression::As fields replaced by target in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `naga.valid.ValidationError`  

naga ValidationError always returned boxed in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `Queue.submit`  

Queue::submit now returns an Option that is None when submission failed. Pass the index to poll wrapped in Some only if you need it, as the diff shows. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `RenderBundleEncoderInterface`  

Custom backends implementing RenderBundleEncoderInterface must implement insert_debug_marker, push_debug_group and pop_debug_group. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `ShaderStages`  

ShaderStages composed of WebGPU and WGPU parts [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `TextureDescriptor`  

Struct literals of TextureDescriptor must now set the new texture_binding_view_dimension field. On GLES and WebGL it constrains texture bindings. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `TextureInterface`  

Custom backends implementing TextureInterface must implement texture_binding_view_dimension. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `TextureViewDescriptor`  

Struct literals of TextureViewDescriptor must now set the new swizzle field. A non-identity swizzle requires the TEXTURE_COMPONENT_SWIZZLE feature. [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `TlasInstance.new`  

TlasInstance::new takes new arguments in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `util.RenderEncoder`  

RenderEncoder implementations need lifetime updates in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)
- **Signature changed** `wgpu_core.validation.StageError`  

StageError entry point variants reorganized in wgpu 31.0.0 [github.com](https://github.com/gfx-rs/wgpu/blob/v31.0.0/CHANGELOG.md)

And 17 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [wgpu-core](https://since.dev/packages/crates/wgpu-core.md)
- [wgpu-hal](https://since.dev/packages/crates/wgpu-hal.md)
- [wgpu-types](https://since.dev/packages/crates/wgpu-types.md)
- [naga](https://since.dev/packages/crates/naga.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
