Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crate wgpu to 0.14.0 #10

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 8, 2022

Mend Renovate

This PR contains the following updates:

Package Type Update Change
wgpu (source) dependencies minor 0.13.1 -> 0.14.0

Release Notes

gfx-rs/wgpu

v0.14.0

Compare Source

Major Changes
@​invariant Warning

When using CompareFunction::Equal or CompareFunction::NotEqual on a pipeline, there is now a warning logged if the vertex
shader does not have a @​invariant tag on it. On some machines, rendering the same triangles multiple times without an
@​invariant tag will result in slightly different depths for every pixel. Because the *Equal functions rely on depth being
the same every time it is rendered, we now warn if it is missing.

-@​vertex
-fn vert_main(v_in: VertexInput) -> @&#8203;builtin(position) vec4<f32> {...}
+@&#8203;vertex
+fn vert_main(v_in: VertexInput) -> @&#8203;builtin(position) @&#8203;invariant vec4<f32> {...}
Surface Alpha and PresentModes

Surface supports alpha_mode now. When alpha_mode is equal to PreMultiplied or PostMultiplied,
the alpha channel of framebuffer is respected in the compositing process, but which mode is available depends on
the different API and Device. If don't care about alpha_mode, you can set it to Auto.

SurfaceConfiguration {
// ...
+ alpha_mode: surface.get_supported_alpha_modes(&adapter)[0],
}

The function to enumerate supported presentation modes changed:

- pub fn wgpu::Surface::get_supported_modes(&self, adapter: &wgpu::Adapter) -> Vec<PresentMode>
+ pub fn wgpu::Surface::get_supported_present_modes(&self, adapter: &wgpu::Adapter) -> Vec<PresentMode>
Updated raw-window-handle to 0.5

This will allow use of the latest version of winit. As such the bound on create_surface is now RWH 0.5 and requires
both raw_window_handle::HasRawWindowHandle and raw_window_handle::HasRawDisplayHandle.

Added/New Features
Bug Fixes
General
  • Free StagingBuffers even when an error occurs in the operation that consumes them. By @​jimblandy in #​2961
  • Avoid overflow when checking that texture copies fall within bounds. By @​jimblandy in #​2963
  • Improve the validation and error reporting of buffer mappings by @​nical in #​2848
  • Fix compilation errors when using wgpu-core in isolation while targetting wasm32-unknown-unknown by @​Seamooo in #​2922
  • Fixed opening of RenderDoc library by @​abuffseagull in #​2930
  • Added missing validation for BufferUsages mismatches when Features::MAPPABLE_PRIMARY_BUFFERS is not
    enabled. By @​imberflur in #​3023
  • Fixed CommandEncoder not being Send and Sync on web by @​i509VCB in #​3025
  • Document meaning of vendor in AdapterInfo if the vendor has no PCI id.
  • Fix missing resource labels from some Errors by @​scoopr in #​3066
Metal
Vulkan
GLES
WebGPU
  • When called in a web worker, Context::init() now uses web_sys::WorkerGlobalContext to create a wgpu::Instance instead of trying to access the unavailable web_sys::Window by @​JolifantoBambla in #​2858
Changes
General
  • Changed wgpu-hal and wgpu-core implementation to pass RawDisplayHandle and RawWindowHandle as separate
    parameters instead of passing an impl trait over both HasRawDisplayHandle and HasRawWindowHandle. By @​i509VCB in #​3022
  • Changed Instance::as_hal<A> to just return an Option<&A::Instance> rather than taking a callback. By @​jimb in #​2991
  • Added downlevel restriction error message for InvalidFormatUsages error by @​Seamooo in #​2886
  • Add warning when using CompareFunction::*Equal with vertex shader that is missing @​invariant tag by @​cwfitzgerald in #​2887
  • Update Winit to version 0.27 and raw-window-handle to 0.5 by @​wyatt-herkamp in #​2918
  • Address Clippy 0.1.63 complaints. By @​jimblandy in #​2977
  • Don't use PhantomData for IdentityManager's Input type. By @​jimblandy in #​2972
  • Changed Naga variant in ShaderSource to Cow<'static, Module>, to allow loading global variables by @​daxpedda in #​2903
  • Updated the maximum binding index to match the WebGPU specification by @​nical in #​2957
Metal
Vulkan
  • Remove use of Vulkan12Features/Properties types. By @​i509VCB in #​2936
  • Provide a means for wgpu users to access vk::Queue and the queue index. By @​anlumo in #​2950
  • Use the use effective api version for determining device features instead of wrongly assuming VkPhysicalDeviceProperties.apiVersion
    is the actual version of the device. By @​i509VCB in #​3011
  • DropGuard has been moved to the root of the wgpu-hal crate. By @​i509VCB #​3046
GLES
Performance
  • Made StagingBelt::write_buffer() check more thoroughly for reusable memory; by @​kpreid in #​2906
Documentation
  • Add WGSL examples to complement existing examples written in GLSL by @​norepimorphism in #​2888
  • Document wgpu_core resource allocation. @​jimblandy in #​2973
  • Expanded StagingBelt documentation by @​kpreid in #​2905
  • Fixed documentation for Instance::create_surface_from_canvas and
    Instance::create_surface_from_offscreen_canvas regarding their
    safety contract. These functions are not unsafe. By @​jimblandy #​2990
  • Document that write_buffer_with() is sound but unwise to read from by @​kpreid in #​3006
  • Explain why Adapter::as_hal and Device::as_hal have to take callback functions. By @​jimblandy in #​2992
Dependency Updates
WebGPU
Build Configuration
  • Add the "strict_asserts" feature, to enable additional internal
    run-time validation in wgpu-core. By @​jimblandy in
    #​2872.
Full API Diff

Manual concatination of cargo public-api --diff-git-checkouts v0.13.2 v0.14.0 -p wgpu and cargo public-api --diff-git-checkouts v0.13.2 v0.14.0 -p wgpu-types


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/wgpu-0.x branch 3 times, most recently from f7bd422 to 8246255 Compare October 15, 2022 05:05
@Zageron
Copy link
Owner

Zageron commented Oct 15, 2022

This PR is incompatible with Pixels for now.

@renovate renovate bot force-pushed the renovate/wgpu-0.x branch from 8246255 to 8726de8 Compare October 15, 2022 19:10
@Zageron
Copy link
Owner

Zageron commented Oct 15, 2022

Made compatible myself and made a PR.

@Zageron Zageron closed this Oct 15, 2022
@renovate renovate bot deleted the renovate/wgpu-0.x branch October 15, 2022 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant