v0.19.2
This release includes wgpu
, wgpu-core
, wgpu-hal
, wgpu-types
, and naga
. All other crates are unchanged.
Added/New Features
General
wgpu::Id
now implementsPartialOrd
/Ord
allowing it to be put inBTreeMap
s. By @cwfitzgerald and @9291Sam in #5176
OpenGL
- Log an error when OpenGL texture format heuristics fail. By @PolyMeilex in #5266
wgsl-out
Documentation
- Fix link in
wgpu::Instance::create_surface
documentation. By @HexoKnight in #5280. - Fix typo in
wgpu::CommandEncoder::clear_buffer
documentation. By @PWhiddy in #5281. Surface
configuration incorrectly claimed thatwgpu::Instance::create_surface
was unsafe. By @hackaugusto in #5265.
Bug Fixes
General
- Device lost callbacks are invoked when replaced and when global is dropped. By @bradwerth in #5168
- Fix performance regression when allocating a large amount of resources of the same type. By @nical in #5229
- Fix docs.rs wasm32 builds. By @cwfitzgerald in #5310
- Improve error message when binding count limit hit. By @hackaugusto in #5298
- Remove an unnecessary
clone
during GLSL shader injestion. By @a1phyr in #5118. - Fix missing validation for
Device::clear_buffer
whereoffset + size > buffer.size
was not checked whensize
was omitted. By @ErichDonGubler in #5282.
DX12
OpenGL
- Fix internal format for the
Etc2Rgba8Unorm
format. By @andristarr in #5178 - Try to load
libX11.so.6
in addition tolibX11.so
on linux. #5307 - Make use of
GL_EXT_texture_shadow_lod
to support sampling a cube depth texture with an explicit LOD. By @cmrschwarz in #5171.
glsl-in
- Fix code generation from nested loops. By @cwfitzgerald and @teoxoy in #5311