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 #7

Closed
wants to merge 53 commits into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 6, 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
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.

Zageron and others added 30 commits October 2, 2022 11:42
Bumps [pixels](https://github.com/parasyte/pixels) from `a2c6398` to `9f7896c`.
- [Release notes](https://github.com/parasyte/pixels/releases)
- [Commits](parasyte/pixels@a2c6398...9f7896c)

---
updated-dependencies:
- dependency-name: pixels
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Zageron and others added 23 commits October 3, 2022 21:08
Bash, Elvish, Fish, PowerShell, and Zsh
- added readme explaining how to develop
- added missing dependencies
- hide "unused" warnings when the target doesn't match
- add config.toml for setting development target.
- construct RRR and RRRBuilder contexts asynchronously
- Use rrr_render to initialize pixels
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@Zageron
Copy link
Owner

Zageron commented Oct 6, 2022

Blocked by pixel's wgpu 13 dependency.

@renovate
Copy link
Contributor Author

renovate bot commented Oct 8, 2022

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will now ignore this update (0.14.0). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.

@renovate renovate bot deleted the renovate/wgpu-0.x branch October 8, 2022 16:08
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