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
On this page
Latest version 31.0.1, released December 5, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
wgpu-hal 31.0.0 breaking changes
- Removed
TextureUses.DEPTH_STENCIL_READ
Use the separate depth and stencil read flags instead. github.com - Removed
TextureUses.DEPTH_STENCIL_WRITE
Use the separate depth and stencil write flags instead. github.com - Removed
wgpu_hal::dx12::borrow_interface_temporarily
wgpu_hal::dx12::borrow_interface_temporarily was removed in wgpu-hal 31.0.0 crates.io - 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 - Removed
wgpu_hal::gles::Instance::egl_config
The method is gone. Code that calls it will no longer compile. crates.io - Removed
wgpu_hal::ShouldBeNonZeroExt
wgpu_hal::ShouldBeNonZeroExt was removed in wgpu-hal 31.0.0 crates.io - 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 - Signature changed
TextureDescriptor
Struct literals must set the new field; it must be Some on devices without ARBITRARY_BINDING_VIEW_DIMENSIONS. github.com - Signature changed
wgpu_hal::Api::ComputePipeline
Was type ComputePipeline: DynComputePipeline; now type ComputePipeline: DynComputePipeline + ComputePipeline. crates.io - Signature changed
wgpu_hal::AtomicFenceValue
Was type AtomicFenceValue = portable_atomic::AtomicU64; now type AtomicFenceValue = wgpu_sync::atomic::AtomicU64. crates.io - Signature changed
wgpu_hal::BindGroupDescriptor::buffers
Was buffers: &'a [BufferBinding<'a, B>]; now buffers: &'a [BufferBinding<'a, B, wgt::BufferSize>]. crates.io - Signature changed
wgpu_hal::BufferBinding
Was struct BufferBinding<'a, B: DynBuffer + ?Sized>; now struct BufferBinding<'a, B: DynBuffer + ?Sized, S>. crates.io - 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 - 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 - Signature changed
wgpu_hal::BufferBinding::size
Was size: Option<wgt::BufferSize>; now size: S. crates.io - 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 - 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 - 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 - 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 - Signature changed
wgpu_hal::DropCallback
Was type DropCallback = Box<dyn FnOnce() + Send + Sync + 'static>; now type DropCallback = Box<dyn FnOnce() + 'static>. crates.io - 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 - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
wgpu_hal::ExternalTextureBinding::params
Was params: BufferBinding<'a, B>; now params: BufferBinding<'a, B, wgt::BufferSize>. crates.io - 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 - Signature changed
wgpu_hal::Queue::present
Callers must pass a damage_rects slice; pass an empty slice for the previous behavior. crates.io - 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 - 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 - 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 - 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 - Signature changed
wgpu_hal::vulkan::TextureMemory::Allocation
The allocation variant holds a wgpu_hal MemoryAllocation instead of a gpu_allocator Allocation. crates.io
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.