wgpu v0.13.2 Release Notes
Release Date: 2022-07-13 // over 1 year ago-
๐ Bug Fixes
General
- Prefer
DeviceType::DiscreteGpu
overDeviceType::Other
forPowerPreference::LowPower
so Vulkan is preferred over OpenGL again by @Craig-Macomber in #2853 - Allow running
get_texture_format_features
on unsupported texture formats (returning no flags) by @cwfitzgerald in #2856 - Allow multi-sampled textures that are supported by the device but not WebGPU if
TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES
is enabled by @cwfitzgerald in #2856 get_texture_format_features
only lists the COPY_* usages if the adapter actually supports that usage by @cwfitzgerald in #2856- ๐ Fix bind group / pipeline deduplication not taking into account RenderBundle execution resetting these values by @shoebe #2867
- ๐ Fix panics that occur when using
as_hal
functions when the hal generic type does not match the hub being looked up in by @i509VCB #2871 - โ Add some validation in map_async by @nical in #2876
- ๐ Fix bugs when mapping/unmapping zero-sized buffers and ranges by @nical in #2877
- ๐ Fix out-of-bound write in
map_buffer
with non-zero offset by @nical in #2916 - Validate the number of color attachments in
create_render_pipeline
by @nical in #2913 - Validate against the maximum binding index in
create_bind_group_layout
by @nical in #2892 - Validate that map_async's range is not negative by @nical in #2938
- Fix calculation/validation of layer/mip ranges in create_texture_view by @nical in #2955
- Validate the sample count and mip level in
copy_texture_to_buffer
by @nical in #2958 - ๐ฆ Expose the cause of the error in the
map_async
callback in #2939
DX12
DownlevelCapabilities::default()
now returns theANISOTROPIC_FILTERING
flag set to true so DX12 listsANISOTROPIC_FILTERING
as true again by @cwfitzgerald in #2851- Properly query format features for UAV/SRV usages of depth formats by @cwfitzgerald in #2856
Vulkan
- Vulkan 1.0 drivers that support
VK_KHR_multiview
now properly report theMULTIVIEW
feature as supported by @i509VCB in #2934. - Stop using
VkPhysicalDevice11Features
in Vulkan 1.1 which is confusingly provided in Vulkan 1.2 by @i509VCB in #2934.
GLES
- ๐ Fix depth stencil texture format capability by @jinleili in #2854
get_texture_format_features
now only returns usages for formats it actually supports by @cwfitzgerald in #2856
Hal
- ๐ Allow access to queue family index in Vulkan hal by @i509VCB in #2859
- ๐ Allow access to the EGLDisplay and EGLContext pointer in Gles hal Adapter and Device by @i509VCB in #2860
๐ Documentation
- โก๏ธ Update present_mode docs as most of them don't automatically fall back to Fifo anymore. by @Elabajaba in #2855
Hal
- Prefer