wgpu v0.13.2 Release Notes

Release Date: 2022-07-13 // over 1 year ago
  • ๐Ÿ› Bug Fixes

    General

    • Prefer DeviceType::DiscreteGpu over DeviceType::Other for PowerPreference::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 the ANISOTROPIC_FILTERING flag set to true so DX12 lists ANISOTROPIC_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 the MULTIVIEW 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

    • Document safety requirements for Adapter::from_external in gles hal by @i509VCB in #2863
    • ๐Ÿ‘‰ Make AdapterContext a publicly accessible type in the gles hal by @i509VCB in #2870