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

# wgpu-hal breaking changes

wgpu-hal 31.0.0 (December 4, 2026) is its newest release with breaking changes, 35 of them. The first: Removed TextureUses.DEPTH_STENCIL_READ. Every breaking API change we have recorded in wgpu-hal on crates.io: 35 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-hal 31.0.0 breaking changes

wgpu-hal 31.0.0, released December 4, 2026: 35 breaking changes.

- **Removed** `TextureUses.DEPTH_STENCIL_READ`  

Use the separate depth and stencil read flags instead. [github.com](https://github.com/gfx-rs/wgpu/releases/tag/v31.0.0)
- **Removed** `TextureUses.DEPTH_STENCIL_WRITE`  

Use the separate depth and stencil write flags instead. [github.com](https://github.com/gfx-rs/wgpu/releases/tag/v31.0.0)
- **Removed** `wgpu_hal::dx12::borrow_interface_temporarily`  

wgpu_hal::dx12::borrow_interface_temporarily was removed in wgpu-hal 31.0.0 [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Removed** `wgpu_hal::dx12::borrow_optional_interface_temporarily`  

wgpu_hal::dx12::borrow_optional_interface_temporarily was removed in wgpu-hal 31.0.0 [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Removed** `wgpu_hal::gles::Instance::egl_config`  

The method is gone. Code that calls it will no longer compile. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Removed** `wgpu_hal::ShouldBeNonZeroExt`  

wgpu_hal::ShouldBeNonZeroExt was removed in wgpu-hal 31.0.0 [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Removed** `wgpu_hal::vulkan::Device::texture_from_d3d11_shared_handle`  

Use texture_from_shared_handle, which also takes a new handle_type argument. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `TextureDescriptor`  

Struct literals must set the new field; it must be Some on devices without ARBITRARY_BINDING_VIEW_DIMENSIONS. [github.com](https://github.com/gfx-rs/wgpu/releases/tag/v31.0.0)
- **Signature changed** `wgpu_hal::Api::ComputePipeline`  

Was type ComputePipeline: DynComputePipeline; now type ComputePipeline: DynComputePipeline + ComputePipeline. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::AtomicFenceValue`  

Was type AtomicFenceValue = portable_atomic::AtomicU64; now type AtomicFenceValue = wgpu_sync::atomic::AtomicU64. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::BindGroupDescriptor::buffers`  

Was buffers: &'a \[BufferBinding<'a, B>\]; now buffers: &'a \[BufferBinding<'a, B, wgt::BufferSize>\]. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::BufferBinding`  

Was struct BufferBinding<'a, B: DynBuffer + ?Sized>; now struct BufferBinding<'a, B: DynBuffer + ?Sized, S>. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::BufferBinding::expect_downcast`  

Was fn expect_downcast\<B: DynBuffer>(self) -> BufferBinding<'a, B>; now fn expect_downcast\<B: DynBuffer>(self) -> BufferBinding<'a, B, S>. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::BufferBinding::new_unchecked`  

Was fn new_unchecked\<S: Into\<Option\<NonZeroU64>>>(buffer: &'a B, offset: wgt::BufferAddress, size: S) -> Self; now fn new_unchecked(buffer: &'a B, offset: wgt::BufferAddress, size: S) -> Self. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::BufferBinding::size`  

Was size: Option\<wgt::BufferSize>; now size: S. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::CommandEncoder::set_index_buffer`  

Was unsafe fn set_index_buffer<'a>(&mut self, binding: BufferBinding<'a, \<Self::A as Api>::Buffer>, format: wgt::IndexFormat); now unsafe fn set_index_buffer<'a>(&mut self, binding: BufferBinding<'a, \<Self::A as Api>::Buffer... [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::CommandEncoder::set_vertex_buffer`  

Was unsafe fn set_vertex_buffer<'a>(&mut self, index: u32, binding: BufferBinding<'a, \<Self::A as Api>::Buffer>); now unsafe fn set_vertex_buffer<'a>(&mut self, index: u32, binding: BufferBinding<'a, \<Self::A as Api>::Buffer... [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::Device::create_buffer`  

Was unsafe fn create_buffer(&self, desc: &BufferDescriptor) -> Result<\<Self::A as Api>::Buffer, DeviceError>; now unsafe fn create_buffer(&self, desc: &BufferDescriptor) -> Result<(\<Self::A as Api>::Buffer, wgt::BufferAddress)... [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::Device::tlas_instance_to_bytes`  

Was fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec\<u8>; now fn tlas_instance_to_bytes(&self, instance: TlasInstance, to_extend: &mut Vec\<u8>). [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::DropCallback`  

Was type DropCallback = Box\<dyn FnOnce() + Send + Sync + 'static>; now type DropCallback = Box\<dyn FnOnce() + 'static>. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::dx12::Device::buffer_from_raw`  

Callers must pass a new drop_callback argument; pass None to keep the previous behavior. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::dx12::Device::texture_from_raw`  

Callers must pass a new drop_callback argument; pass None to keep the previous behavior. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::DynCommandEncoder::set_index_buffer`  

Was unsafe fn set_index_buffer<'a>(&mut self, binding: BufferBinding<'a, dyn DynBuffer>, format: wgt::IndexFormat); now unsafe fn set_index_buffer<'a>(&mut self, binding: BufferBinding<'a, dyn DynBuffer, wgt::BufferAddress>, format... [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::DynCommandEncoder::set_vertex_buffer`  

Was unsafe fn set_vertex_buffer<'a>(&mut self, index: u32, binding: BufferBinding<'a, dyn DynBuffer>); now unsafe fn set_vertex_buffer<'a>(&mut self, index: u32, binding: BufferBinding<'a, dyn DynBuffer, wgt::BufferAddress>). [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::DynDevice::create_buffer`  

Was unsafe fn create_buffer(&self, desc: &BufferDescriptor) -> Result\<Box\<dyn DynBuffer>, DeviceError>; now unsafe fn create_buffer(&self, desc: &BufferDescriptor) -> Result<(Box\<dyn DynBuffer>, wgt::BufferAddress), DeviceError>. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::DynDevice::tlas_instance_to_bytes`  

Was fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec\<u8>; now fn tlas_instance_to_bytes(&self, instance: TlasInstance, to_extend: &mut Vec\<u8>). [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::DynQueue::present`  

Was unsafe fn present(&self, surface: &dyn DynSurface, texture: Box\<dyn DynSurfaceTexture>) -> Result<(), SurfaceError>; now unsafe fn present(&self, surface: &dyn DynSurface, texture: Box\<dyn DynSurfaceTexture>, damage_rects... [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::ExternalTextureBinding::params`  

Was params: BufferBinding<'a, B>; now params: BufferBinding<'a, B, wgt::BufferSize>. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::metal::Device::buffer_from_raw`  

Callers must drop the size argument; binding sizes are now resolved in wgpu-core. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::Queue::present`  

Callers must pass a damage_rects slice; pass an empty slice for the previous behavior. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::vulkan::conv::map_acceleration_structure_usage_to_barrier`  

Was fn map_acceleration_structure_usage_to_barrier(usage: crate::AccelerationStructureUses, features: wgt::Features) -> (vk::PipelineStageFlags, vk::AccessFlags); now fn map_acceleration_structure_usage_to_barrier(usage... [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::vulkan::conv::map_buffer_usage_to_barrier`  

Was fn map_buffer_usage_to_barrier(usage: wgt::BufferUses) -> (vk::PipelineStageFlags, vk::AccessFlags); now fn map_buffer_usage_to_barrier(usage: wgt::BufferUses, queue_flags: vk::QueueFlags, features: wgt::Features) ->... [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::vulkan::conv::map_texture_usage_to_barrier`  

Was fn map_texture_usage_to_barrier(usage: wgt::TextureUses) -> (vk::PipelineStageFlags, vk::AccessFlags); now fn map_texture_usage_to_barrier(usage: wgt::TextureUses, queue_flags: vk::QueueFlags, support_store_op_none: bool, features... [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::vulkan::Instance::from_raw`  

Callers must pass the new arguments; pass VulkanSwapchainKind::Native and None for the previous behavior. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)
- **Signature changed** `wgpu_hal::vulkan::TextureMemory::Allocation`  

The allocation variant holds a wgpu_hal MemoryAllocation instead of a gpu_allocator Allocation. [crates.io](https://crates.io/crates/wgpu-hal/31.0.0)

## Related packages

- [wgpu](https://since.dev/packages/crates/wgpu.md)
- [wgpu-core](https://since.dev/packages/crates/wgpu-core.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.
