fix(deps): update rust crate wgpu to 0.20 #3

Closed
renovate wants to merge 1 commit from renovate/wgpu-0.x into main
Collaborator

This PR contains the following updates:

Package Type Update Change
wgpu (source) dependencies minor 0.19 -> 0.20

Release Notes

gfx-rs/wgpu (wgpu)

v0.20.0

Compare Source

Major Changes
Pipeline overridable constants

Wgpu supports now pipeline-overridable constants

This allows you to define constants in wgsl like this:

override some_factor: f32 = 42.1337; // Specifies a default of 42.1337 if it's not set.

And then set them at runtime like so on your pipeline consuming this shader:

// ...
fragment: Some(wgpu::FragmentState {
    compilation_options: wgpu::PipelineCompilationOptions {
        constants: &[("some_factor".to_owned(), 0.1234)].into(), // Sets `some_factor` to 0.1234.
        ..Default::default()
    },
    // ...
}),
// ...

By @​teoxoy & @​jimblandy in #​5500

Changed feature requirements for timestamps

Due to a specification change write_timestamp is no longer supported on WebGPU.
wgpu::CommandEncoder::write_timestamp requires now the new wgpu::Features::TIMESTAMP_QUERY_INSIDE_ENCODERS feature which is available on all native backends but not on WebGPU.

By @​wumpf in #​5188

Wgsl const evaluation for many more built-ins

Many numeric built-ins have had a constant evaluation implementation added for them, which allows them to be used in a const context:

abs, acos, acosh, asin, asinh, atan, atanh, cos, cosh, round, saturate, sin, sinh, sqrt, step, tan, tanh, ceil, countLeadingZeros, countOneBits, countTrailingZeros, degrees, exp, exp2, floor, fract, fma, inverseSqrt, log, log2, max, min, radians, reverseBits, sign, trunc

By @​ErichDonGubler in #​4879, #​5098

New native-only wgsl features
Subgroup operations

The following subgroup operations are available in wgsl now:

subgroupBallot, subgroupAll, subgroupAny, subgroupAdd, subgroupMul, subgroupMin, subgroupMax, subgroupAnd, subgroupOr, subgroupXor, subgroupExclusiveAdd, subgroupExclusiveMul, subgroupInclusiveAdd, subgroupInclusiveMul, subgroupBroadcastFirst, subgroupBroadcast, subgroupShuffle, subgroupShuffleDown, subgroupShuffleUp, subgroupShuffleXor

Availability is governed by the following feature flags:

  • wgpu::Features::SUBGROUP for all operations except subgroupBarrier in fragment & compute, supported on Vulkan, DX12 and Metal.
  • wgpu::Features::SUBGROUP_VERTEX, for all operations except subgroupBarrier general operations in vertex shaders, supported on Vulkan
  • wgpu::Features::SUBGROUP_BARRIER, for support of the subgroupBarrier operation, supported on Vulkan & Metal

Note that there currently some differences between wgpu's native-only implementation and the open WebGPU proposal.

By @​exrook and @​lichtso in #​5301

Signed and unsigned 64 bit integer support in shaders.

wgpu::Features::SHADER_INT64 enables 64 bit integer signed and unsigned integer variables in wgsl (i64 and u64 respectively).
Supported on Vulkan, DX12 (requires DXC) and Metal (with MSL 2.3+ support).

By @​atlv24 and @​cwfitzgerald in #​5154

New features
General
  • Implemented the Unorm10_10_10_2 VertexFormat by @​McMackety in #​5477
  • wgpu-types's trace and replay features have been replaced by the serde feature. By @​KirmesBude in #​5149
  • wgpu-core's serial-pass feature has been removed. Use serde instead. By @​KirmesBude in #​5149
  • Added InstanceFlags::GPU_BASED_VALIDATION, which enables GPU-based validation for shaders. This is currently only supported on the DX12 and Vulkan backends; other platforms ignore this flag, for now. By @​ErichDonGubler in #​5146, #​5046.
    • When set, this flag implies InstanceFlags::VALIDATION.
    • This has been added to the set of flags set by InstanceFlags::advanced_debugging. Since the overhead is potentially very large, the flag is not enabled by default in debug builds when using InstanceFlags::from_build_config.
    • As with other instance flags, this flag can be changed in calls to InstanceFlags::with_env with the new WGPU_GPU_BASED_VALIDATION environment variable.
  • wgpu::Instance can now report which wgpu::Backends are available based on the build configuration. By @​wumpf #​5167
    -wgpu::Instance::any_backend_feature_enabled()
    +!wgpu::Instance::enabled_backend_features().is_empty()
    
  • Breaking change: wgpu_core::pipeline::ProgrammableStageDescriptor is now optional. By @​ErichDonGubler in #​5305.
  • Features::downlevel{_webgl2,}_features was made const by @​MultisampledNight in #​5343
  • Breaking change: wgpu_core::pipeline::ShaderError has been moved to naga. By @​stefnotch in #​5410
  • More as_hal methods and improvements by @​JMS55 in #​5452
    • Added wgpu::CommandEncoder::as_hal_mut
    • Added wgpu::TextureView::as_hal
    • wgpu::Texture::as_hal now returns a user-defined type to match the other as_hal functions
Naga
  • Allow user to select which MSL version to use via --metal-version with Naga CLI. By @​pcleavelin in #​5392
  • Support arrayLength for runtime-sized arrays inside binding arrays (for WGSL input and SPIR-V output). By @​kvark in #​5428
  • Added --shader-stage and --input-kind options to naga-cli for specifying vertex/fragment/compute shaders, and frontend. by @​ratmice in #​5411
  • Added a create_validator function to wgpu_core Device to create naga Validators. By @​atlv24 #​5606
WebGPU
GLES / OpenGL
Metal
DX12
Other performance improvements
  • Simplify and speed up the allocation of internal IDs. By @​nical in #​5229
  • Use memory pooling for UsageScopes to avoid frequent large allocations. by @​robtfm in #​5414
  • Eager release of GPU resources comes from device.trackers. By @​bradwerth in #​5075
  • Support disabling zero-initialization of workgroup local memory in compute shaders. By @​DJMcNab in #​5508
Documentation
Bug Fixes
General
Naga
  • In spv-in, remove unnecessary "gl_PerVertex" name check so unused builtins will always be skipped. Prevents validation errors caused by capability requirements of these builtins #​4915. By @​Imberflur in #​5227.
  • In spv-out, check for acceleration and ray-query types when enabling ray-query extension to prevent validation error. By @​Vecvec in #​5463
  • Add a limit for curly brace nesting in WGSL parsing, plus a note about stack size requirements. By @​ErichDonGubler in #​5447.
  • In hlsl-out, fix accesses on zero value expressions by generating helper functions for Expression::ZeroValue. By @​Imberflur in #​5587.
  • Fix behavior of extractBits and insertBits when offset + count overflows the bit width. By @​cwfitzgerald in #​5305
  • Fix behavior of integer clamp when min argument > max argument. By @​cwfitzgerald in #​5300.
  • Fix TypeInner::scalar_width to be consistent with the rest of the codebase and return values in bytes not bits. By @​atlv24 in #​5532.
GLES / OpenGL
  • GLSL 410 does not support layout(binding = ...), enable only for GLSL 420. By @​bes in #​5357
  • Fixes for being able to use an OpenGL 4.1 core context provided by macOS with wgpu. By @​bes in #​5331.
  • Fix crash when holding multiple devices on wayland/surfaceless. By @​ashdnazg in #​5351.
  • Fix first_instance getting ignored in draw indexed when ARB_shader_draw_parameters feature is present and base_vertex is 0. By @​valaphee in #​5482
Vulkan
  • Set object labels when the DEBUG flag is set, even if the VALIDATION flag is disabled. By @​DJMcNab in #​5345.
  • Add safety check to wgpu_hal::vulkan::CommandEncoder to make sure discard_encoding is not called in the closed state. By @​villuna in #​5557
  • Fix SPIR-V type capability requests to not depend on LocalType caching. By @​atlv24 in #​5590
  • Upgrade ash to 0.38. By @​MarijnS95 in #​5504.
Tests
  • Fix intermittent crashes on Linux in the multithreaded_compute test. By @​jimblandy in #​5129.
  • Refactor tests to read feature flags by name instead of a hardcoded hexadecimal u64. By @​atlv24 in #​5155.
  • Add test that verifies that we can drop the queue before using the device to create a command encoder. By @​Davidster in #​5211

Configuration

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [wgpu](https://wgpu.rs/) ([source](https://github.com/gfx-rs/wgpu)) | dependencies | minor | `0.19` -> `0.20` | --- ### Release Notes <details> <summary>gfx-rs/wgpu (wgpu)</summary> ### [`v0.20.0`](https://github.com/gfx-rs/wgpu/blob/HEAD/CHANGELOG.md#v0200-2024-04-28) [Compare Source](https://github.com/gfx-rs/wgpu/compare/v0.19.4...v0.20.0) ##### Major Changes ##### Pipeline overridable constants Wgpu supports now [pipeline-overridable constants](https://www.w3.org/TR/webgpu/#dom-gpuprogrammablestage-constants) This allows you to define constants in wgsl like this: ```rust override some_factor: f32 = 42.1337; // Specifies a default of 42.1337 if it's not set. ``` And then set them at runtime like so on your pipeline consuming this shader: ```rust // ... fragment: Some(wgpu::FragmentState { compilation_options: wgpu::PipelineCompilationOptions { constants: &[("some_factor".to_owned(), 0.1234)].into(), // Sets `some_factor` to 0.1234. ..Default::default() }, // ... }), // ... ``` By [@&#8203;teoxoy](https://github.com/teoxoy) & [@&#8203;jimblandy](https://github.com/jimblandy) in [#&#8203;5500](https://github.com/gfx-rs/wgpu/pull/5500) ##### Changed feature requirements for timestamps Due to a specification change `write_timestamp` is no longer supported on WebGPU. `wgpu::CommandEncoder::write_timestamp` requires now the new `wgpu::Features::TIMESTAMP_QUERY_INSIDE_ENCODERS` feature which is available on all native backends but not on WebGPU. By [@&#8203;wumpf](https://github.com/wumpf) in [#&#8203;5188](https://github.com/gfx-rs/wgpu/pull/5188) ##### Wgsl const evaluation for many more built-ins Many numeric built-ins have had a constant evaluation implementation added for them, which allows them to be used in a `const` context: `abs`, `acos`, `acosh`, `asin`, `asinh`, `atan`, `atanh`, `cos`, `cosh`, `round`, `saturate`, `sin`, `sinh`, `sqrt`, `step`, `tan`, `tanh`, `ceil`, `countLeadingZeros`, `countOneBits`, `countTrailingZeros`, `degrees`, `exp`, `exp2`, `floor`, `fract`, `fma`, `inverseSqrt`, `log`, `log2`, `max`, `min`, `radians`, `reverseBits`, `sign`, `trunc` By [@&#8203;ErichDonGubler](https://github.com/ErichDonGubler) in [#&#8203;4879](https://github.com/gfx-rs/wgpu/pull/4879), [#&#8203;5098](https://github.com/gfx-rs/wgpu/pull/5098) ##### New **native-only** wgsl features ##### Subgroup operations The following subgroup operations are available in wgsl now: `subgroupBallot`, `subgroupAll`, `subgroupAny`, `subgroupAdd`, `subgroupMul`, `subgroupMin`, `subgroupMax`, `subgroupAnd`, `subgroupOr`, `subgroupXor`, `subgroupExclusiveAdd`, `subgroupExclusiveMul`, `subgroupInclusiveAdd`, `subgroupInclusiveMul`, `subgroupBroadcastFirst`, `subgroupBroadcast`, `subgroupShuffle`, `subgroupShuffleDown`, `subgroupShuffleUp`, `subgroupShuffleXor` Availability is governed by the following feature flags: - `wgpu::Features::SUBGROUP` for all operations except `subgroupBarrier` in fragment & compute, supported on Vulkan, DX12 and Metal. - `wgpu::Features::SUBGROUP_VERTEX`, for all operations except `subgroupBarrier` general operations in vertex shaders, supported on Vulkan - `wgpu::Features::SUBGROUP_BARRIER`, for support of the `subgroupBarrier` operation, supported on Vulkan & Metal Note that there currently [some differences](https://github.com/gfx-rs/wgpu/issues/5555) between wgpu's native-only implementation and the [open WebGPU proposal](https://github.com/gpuweb/gpuweb/blob/main/proposals/subgroups.md). By [@&#8203;exrook](https://github.com/exrook) and [@&#8203;lichtso](https://github.com/lichtso) in [#&#8203;5301](https://github.com/gfx-rs/wgpu/pull/5301) ##### Signed and unsigned 64 bit integer support in shaders. `wgpu::Features::SHADER_INT64` enables 64 bit integer signed and unsigned integer variables in wgsl (`i64` and `u64` respectively). Supported on Vulkan, DX12 (requires DXC) and Metal (with MSL 2.3+ support). By [@&#8203;atlv24](https://github.com/atlv24) and [@&#8203;cwfitzgerald](https://github.com/cwfitzgerald) in [#&#8203;5154](https://github.com/gfx-rs/wgpu/pull/5154) ##### New features ##### General - Implemented the `Unorm10_10_10_2` VertexFormat by [@&#8203;McMackety](https://github.com/McMackety) in [#&#8203;5477](https://github.com/gfx-rs/wgpu/pull/5477) - `wgpu-types`'s `trace` and `replay` features have been replaced by the `serde` feature. By [@&#8203;KirmesBude](https://github.com/KirmesBude) in [#&#8203;5149](https://github.com/gfx-rs/wgpu/pull/5149) - `wgpu-core`'s `serial-pass` feature has been removed. Use `serde` instead. By [@&#8203;KirmesBude](https://github.com/KirmesBude) in [#&#8203;5149](https://github.com/gfx-rs/wgpu/pull/5149) - Added `InstanceFlags::GPU_BASED_VALIDATION`, which enables GPU-based validation for shaders. This is currently only supported on the DX12 and Vulkan backends; other platforms ignore this flag, for now. By [@&#8203;ErichDonGubler](https://github.com/ErichDonGubler) in [#&#8203;5146](https://github.com/gfx-rs/wgpu/pull/5146), [#&#8203;5046](https://github.com/gfx-rs/wgpu/pull/5046). - When set, this flag implies `InstanceFlags::VALIDATION`. - This has been added to the set of flags set by `InstanceFlags::advanced_debugging`. Since the overhead is potentially very large, the flag is not enabled by default in debug builds when using `InstanceFlags::from_build_config`. - As with other instance flags, this flag can be changed in calls to `InstanceFlags::with_env` with the new `WGPU_GPU_BASED_VALIDATION` environment variable. - `wgpu::Instance` can now report which `wgpu::Backends` are available based on the build configuration. By [@&#8203;wumpf](https://github.com/wumpf) [#&#8203;5167](https://github.com/gfx-rs/wgpu/pull/5167) ```diff -wgpu::Instance::any_backend_feature_enabled() +!wgpu::Instance::enabled_backend_features().is_empty() ``` - Breaking change: [`wgpu_core::pipeline::ProgrammableStageDescriptor`](https://docs.rs/wgpu-core/latest/wgpu_core/pipeline/struct.ProgrammableStageDescriptor.html#structfield.entry_point) is now optional. By [@&#8203;ErichDonGubler](https://github.com/ErichDonGubler) in [#&#8203;5305](https://github.com/gfx-rs/wgpu/pull/5305). - `Features::downlevel{_webgl2,}_features` was made const by [@&#8203;MultisampledNight](https://github.com/MultisampledNight) in [#&#8203;5343](https://github.com/gfx-rs/wgpu/pull/5343) - Breaking change: [`wgpu_core::pipeline::ShaderError`](https://docs.rs/wgpu-core/latest/wgpu_core/pipeline/struct.ShaderError.html) has been moved to `naga`. By [@&#8203;stefnotch](https://github.com/stefnotch) in [#&#8203;5410](https://github.com/gfx-rs/wgpu/pull/5410) - More as_hal methods and improvements by [@&#8203;JMS55](https://github.com/JMS55) in [#&#8203;5452](https://github.com/gfx-rs/wgpu/pull/5452) - Added `wgpu::CommandEncoder::as_hal_mut` - Added `wgpu::TextureView::as_hal` - `wgpu::Texture::as_hal` now returns a user-defined type to match the other as_hal functions ##### Naga - Allow user to select which MSL version to use via `--metal-version` with Naga CLI. By [@&#8203;pcleavelin](https://github.com/pcleavelin) in [#&#8203;5392](https://github.com/gfx-rs/wgpu/pull/5392) - Support `arrayLength` for runtime-sized arrays inside binding arrays (for WGSL input and SPIR-V output). By [@&#8203;kvark](https://github.com/kvark) in [#&#8203;5428](https://github.com/gfx-rs/wgpu/pull/5428) - Added `--shader-stage` and `--input-kind` options to naga-cli for specifying vertex/fragment/compute shaders, and frontend. by [@&#8203;ratmice](https://github.com/ratmice) in [#&#8203;5411](https://github.com/gfx-rs/wgpu/pull/5411) - Added a `create_validator` function to wgpu_core `Device` to create naga `Validator`s. By [@&#8203;atlv24](https://github.com/atlv24) [#&#8203;5606](https://github.com/gfx-rs/wgpu/pull/5606) ##### WebGPU - Implement the `device_set_device_lost_callback` method for `ContextWebGpu`. By [@&#8203;suti](https://github.com/suti) in [#&#8203;5438](https://github.com/gfx-rs/wgpu/pull/5438) - Add support for storage texture access modes `ReadOnly` and `ReadWrite`. By [@&#8203;JolifantoBambla](https://github.com/JolifantoBambla) in [#&#8203;5434](https://github.com/gfx-rs/wgpu/pull/5434) ##### GLES / OpenGL - Log an error when GLES texture format heuristics fail. By [@&#8203;PolyMeilex](https://github.com/PolyMeilex) in [#&#8203;5266](https://github.com/gfx-rs/wgpu/issues/5266) - Cache the sample count to keep `get_texture_format_features` cheap. By [@&#8203;Dinnerbone](https://github.com/Dinnerbone) in [#&#8203;5346](https://github.com/gfx-rs/wgpu/pull/5346) - Mark `DEPTH32FLOAT_STENCIL8` as supported in GLES. By [@&#8203;Dinnerbone](https://github.com/Dinnerbone) in [#&#8203;5370](https://github.com/gfx-rs/wgpu/pull/5370) - Desktop GL now also supports `TEXTURE_COMPRESSION_ETC2`. By [@&#8203;Valaphee](https://github.com/Valaphee) in [#&#8203;5568](https://github.com/gfx-rs/wgpu/pull/5568) - Don't create a program for shader-clearing if that workaround isn't required. By [@&#8203;Dinnerbone](https://github.com/Dinnerbone) in [#&#8203;5348](https://github.com/gfx-rs/wgpu/pull/5348). - OpenGL will now be preferred over OpenGL ES on EGL, making it consistent with WGL. By [@&#8203;valaphee](https://github.com/valaphee) in [#&#8203;5482](https://github.com/gfx-rs/wgpu/pull/5482) - Fill out `driver` and `driver_info`, with the OpenGL flavor and version, similar to Vulkan. By [@&#8203;valaphee](https://github.com/valaphee) in [#&#8203;5482](https://github.com/gfx-rs/wgpu/pull/5482) ##### Metal - Metal 3.0 and 3.1 detection. By [@&#8203;atlv24](https://github.com/atlv24) in [#&#8203;5497](https://github.com/gfx-rs/wgpu/pull/5497) ##### DX12 - Shader Model 6.1-6.7 detection. By [@&#8203;atlv24](https://github.com/atlv24) in [#&#8203;5498](https://github.com/gfx-rs/wgpu/pull/5498) ##### Other performance improvements - Simplify and speed up the allocation of internal IDs. By [@&#8203;nical](https://github.com/nical) in [#&#8203;5229](https://github.com/gfx-rs/wgpu/pull/5229) - Use memory pooling for UsageScopes to avoid frequent large allocations. by [@&#8203;robtfm](https://github.com/robtfm) in [#&#8203;5414](https://github.com/gfx-rs/wgpu/pull/5414) - Eager release of GPU resources comes from device.trackers. By [@&#8203;bradwerth](https://github.com/bradwerth) in [#&#8203;5075](https://github.com/gfx-rs/wgpu/pull/5075) - Support disabling zero-initialization of workgroup local memory in compute shaders. By [@&#8203;DJMcNab](https://github.com/DJMcNab) in [#&#8203;5508](https://github.com/gfx-rs/wgpu/pull/5508) ##### Documentation - Improved `wgpu_hal` documentation. By [@&#8203;jimblandy](https://github.com/jimblandy) in [#&#8203;5516](https://github.com/gfx-rs/wgpu/pull/5516), [#&#8203;5524](https://github.com/gfx-rs/wgpu/pull/5524), [#&#8203;5562](https://github.com/gfx-rs/wgpu/pull/5562), [#&#8203;5563](https://github.com/gfx-rs/wgpu/pull/5563), [#&#8203;5566](https://github.com/gfx-rs/wgpu/pull/5566), [#&#8203;5617](https://github.com/gfx-rs/wgpu/pull/5617), [#&#8203;5618](https://github.com/gfx-rs/wgpu/pull/5618) - Add mention of primitive restart in the description of `PrimitiveState::strip_index_format`. By [@&#8203;cpsdqs](https://github.com/cpsdqs) in [#&#8203;5350](https://github.com/gfx-rs/wgpu/pull/5350) - Document and tweak precise behaviour of `SourceLocation`. By [@&#8203;stefnotch](https://github.com/stefnotch) in [#&#8203;5386](https://github.com/gfx-rs/wgpu/pull/5386) and [#&#8203;5410](https://github.com/gfx-rs/wgpu/pull/5410) - Give short example of WGSL `push_constant` syntax. By [@&#8203;waywardmonkeys](https://github.com/waywardmonkeys) in [#&#8203;5393](https://github.com/gfx-rs/wgpu/pull/5393) - Fix incorrect documentation of `Limits::max_compute_workgroup_storage_size` default value. By [@&#8203;atlv24](https://github.com/atlv24) in [#&#8203;5601](https://github.com/gfx-rs/wgpu/pull/5601) ##### Bug Fixes ##### General - Fix `serde` feature not compiling for `wgpu-types`. By [@&#8203;KirmesBude](https://github.com/KirmesBude) in [#&#8203;5149](https://github.com/gfx-rs/wgpu/pull/5149) - Fix the validation of vertex and index ranges. By [@&#8203;nical](https://github.com/nical) in [#&#8203;5144](https://github.com/gfx-rs/wgpu/pull/5144) and [#&#8203;5156](https://github.com/gfx-rs/wgpu/pull/5156) - Fix panic when creating a surface while no backend is available. By [@&#8203;wumpf](https://github.com/wumpf) [#&#8203;5166](https://github.com/gfx-rs/wgpu/pull/5166) - Correctly compute minimum buffer size for array-typed `storage` and `uniform` vars. By [@&#8203;jimblandy](https://github.com/jimblandy) [#&#8203;5222](https://github.com/gfx-rs/wgpu/pull/5222) - Fix timeout when presenting a surface where no work has been done. By [@&#8203;waywardmonkeys](https://github.com/waywardmonkeys) in [#&#8203;5200](https://github.com/gfx-rs/wgpu/pull/5200) - Fix registry leaks with de-duplicated resources. By [@&#8203;nical](https://github.com/nical) in [#&#8203;5244](https://github.com/gfx-rs/wgpu/pull/5244) - Fix linking when targeting android. By [@&#8203;ashdnazg](https://github.com/ashdnazg) in [#&#8203;5326](https://github.com/gfx-rs/wgpu/pull/5326). - Failing to set the device lost closure will call the closure before returning. By [@&#8203;bradwerth](https://github.com/bradwerth) in [#&#8203;5358](https://github.com/gfx-rs/wgpu/pull/5358). - Fix deadlocks caused by recursive read-write lock acquisitions [#&#8203;5426](https://github.com/gfx-rs/wgpu/pull/5426). - Remove exposed C symbols (`extern "C"` + \[no_mangle]) from RenderPass & ComputePass recording. By [@&#8203;wumpf](https://github.com/wumpf) in [#&#8203;5409](https://github.com/gfx-rs/wgpu/pull/5409). - Fix surfaces being only compatible with first backend enabled on an instance, causing failures when manually specifying an adapter. By [@&#8203;Wumpf](https://github.com/Wumpf) in [#&#8203;5535](https://github.com/gfx-rs/wgpu/pull/5535). - Clean up weak references to texture views and bind groups. By [@&#8203;xiaopengli89](https://github.com/xiaopengli89) [#&#8203;5595](https://github.com/gfx-rs/wgpu/pull/5595). ##### Naga - In spv-in, remove unnecessary "gl_PerVertex" name check so unused builtins will always be skipped. Prevents validation errors caused by capability requirements of these builtins [#&#8203;4915](https://github.com/gfx-rs/wgpu/issues/4915). By [@&#8203;Imberflur](https://github.com/Imberflur) in [#&#8203;5227](https://github.com/gfx-rs/wgpu/pull/5227). - In spv-out, check for acceleration and ray-query types when enabling ray-query extension to prevent validation error. By [@&#8203;Vecvec](https://github.com/Vecvec) in [#&#8203;5463](https://github.com/gfx-rs/wgpu/pull/5463) - Add a limit for curly brace nesting in WGSL parsing, plus a note about stack size requirements. By [@&#8203;ErichDonGubler](https://github.com/ErichDonGubler) in [#&#8203;5447](https://github.com/gfx-rs/wgpu/pull/5447). - In hlsl-out, fix accesses on zero value expressions by generating helper functions for `Expression::ZeroValue`. By [@&#8203;Imberflur](https://github.com/Imberflur) in [#&#8203;5587](https://github.com/gfx-rs/wgpu/pull/5587). - Fix behavior of `extractBits` and `insertBits` when `offset + count` overflows the bit width. By [@&#8203;cwfitzgerald](https://github.com/cwfitzgerald) in [#&#8203;5305](https://github.com/gfx-rs/wgpu/pull/5305) - Fix behavior of integer `clamp` when `min` argument > `max` argument. By [@&#8203;cwfitzgerald](https://github.com/cwfitzgerald) in [#&#8203;5300](https://github.com/gfx-rs/wgpu/pull/5300). - Fix `TypeInner::scalar_width` to be consistent with the rest of the codebase and return values in bytes not bits. By [@&#8203;atlv24](https://github.com/atlv24) in [#&#8203;5532](https://github.com/gfx-rs/wgpu/pull/5532). ##### GLES / OpenGL - GLSL 410 does not support layout(binding = ...), enable only for GLSL 420. By [@&#8203;bes](https://github.com/bes) in [#&#8203;5357](https://github.com/gfx-rs/wgpu/pull/5357) - Fixes for being able to use an OpenGL 4.1 core context provided by macOS with wgpu. By [@&#8203;bes](https://github.com/bes) in [#&#8203;5331](https://github.com/gfx-rs/wgpu/pull/5331). - Fix crash when holding multiple devices on wayland/surfaceless. By [@&#8203;ashdnazg](https://github.com/ashdnazg) in [#&#8203;5351](https://github.com/gfx-rs/wgpu/pull/5351). - Fix `first_instance` getting ignored in draw indexed when `ARB_shader_draw_parameters` feature is present and `base_vertex` is 0. By [@&#8203;valaphee](https://github.com/valaphee) in [#&#8203;5482](https://github.com/gfx-rs/wgpu/pull/5482) ##### Vulkan - Set object labels when the DEBUG flag is set, even if the VALIDATION flag is disabled. By [@&#8203;DJMcNab](https://github.com/DJMcNab) in [#&#8203;5345](https://github.com/gfx-rs/wgpu/pull/5345). - Add safety check to `wgpu_hal::vulkan::CommandEncoder` to make sure `discard_encoding` is not called in the closed state. By [@&#8203;villuna](https://github.com/villuna) in [#&#8203;5557](https://github.com/gfx-rs/wgpu/pull/5557) - Fix SPIR-V type capability requests to not depend on `LocalType` caching. By [@&#8203;atlv24](https://github.com/atlv24) in [#&#8203;5590](https://github.com/gfx-rs/wgpu/pull/5590) - Upgrade `ash` to `0.38`. By [@&#8203;MarijnS95](https://github.com/MarijnS95) in [#&#8203;5504](https://github.com/gfx-rs/wgpu/pull/5504). ##### Tests - Fix intermittent crashes on Linux in the `multithreaded_compute` test. By [@&#8203;jimblandy](https://github.com/jimblandy) in [#&#8203;5129](https://github.com/gfx-rs/wgpu/pull/5129). - Refactor tests to read feature flags by name instead of a hardcoded hexadecimal u64. By [@&#8203;atlv24](https://github.com/atlv24) in [#&#8203;5155](https://github.com/gfx-rs/wgpu/pull/5155). - Add test that verifies that we can drop the queue before using the device to create a command encoder. By [@&#8203;Davidster](https://github.com/Davidster) in [#&#8203;5211](https://github.com/gfx-rs/wgpu/pull/5211) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIwLjAuMC1zZW1hbnRpYy1yZWxlYXNlIiwidXBkYXRlZEluVmVyIjoiMC4wLjAtc2VtYW50aWMtcmVsZWFzZSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
renovate added 1 commit 2024-05-17 22:19:43 +12:00
fix(deps): update rust crate wgpu to 0.20
Some checks failed
renovate/artifacts Artifact file update failure
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
2a8841a880
renovate scheduled this pull request to auto merge when all checks succeed 2024-05-17 22:19:44 +12:00
Author
Collaborator

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: native/scenic_renderer/Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path native/scenic_renderer/Cargo.toml --package wgpu@0.19.4 --precise 0.20.0
    Updating crates.io index
error: failed to select a version for the requirement `wgpu = "^0.19"`
candidate versions found which didn't match: 0.20.0
location searched: crates.io index
required by package `renderling v0.4.3`
    ... which satisfies dependency `renderling = "^0.4.3"` (locked to 0.4.3) of package `scenic_renderer v0.1.0 (/drone/src/cache/repos/gitea/james/scenic_driver_renderling/native/scenic_renderer)`
perhaps a crate was updated and forgotten to be re-vendored?

### ⚠ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: native/scenic_renderer/Cargo.lock ``` Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path native/scenic_renderer/Cargo.toml --package wgpu@0.19.4 --precise 0.20.0 Updating crates.io index error: failed to select a version for the requirement `wgpu = "^0.19"` candidate versions found which didn't match: 0.20.0 location searched: crates.io index required by package `renderling v0.4.3` ... which satisfies dependency `renderling = "^0.4.3"` (locked to 0.4.3) of package `scenic_renderer v0.1.0 (/drone/src/cache/repos/gitea/james/scenic_driver_renderling/native/scenic_renderer)` perhaps a crate was updated and forgotten to be re-vendored? ```
renovate force-pushed renovate/wgpu-0.x from 2a8841a880 to 68b52f164e 2024-05-17 23:19:27 +12:00 Compare
james was assigned by renovate 2024-05-18 00:18:43 +12:00
renovate force-pushed renovate/wgpu-0.x from 68b52f164e to b4f6339391 2024-05-18 06:18:56 +12:00 Compare
renovate force-pushed renovate/wgpu-0.x from b4f6339391 to c5c4a034d4 2024-05-18 07:18:21 +12:00 Compare
renovate force-pushed renovate/wgpu-0.x from c5c4a034d4 to cc082561a7 2024-05-18 08:18:10 +12:00 Compare
renovate force-pushed renovate/wgpu-0.x from cc082561a7 to f6c5c0aa7b 2024-05-18 09:18:03 +12:00 Compare
james canceled auto merging this pull request when all checks succeed 2024-05-18 09:46:55 +12:00
james closed this pull request 2024-05-18 09:46:58 +12:00
Author
Collaborator

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (0.20). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

### Renovate Ignore Notification Because you closed this PR without merging, Renovate will ignore this update (`0.20`). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the `ignoreDeps` array of your Renovate config. If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
Some checks failed
renovate/artifacts Artifact file update failure
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: james/scenic_driver_renderling#3
No description provided.