fix(deps): update rust crate wgpu to 0.14.0 #10
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
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.
Surface Alpha and PresentModes
Surface supports
alpha_mode
now. When alpha_mode is equal toPreMultiplied
orPostMultiplied
,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 toAuto
.SurfaceConfiguration { // ... + alpha_mode: surface.get_supported_alpha_modes(&adapter)[0], }
The function to enumerate supported presentation modes changed:
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
andraw_window_handle::HasRawDisplayHandle
.Added/New Features
Buffer::size()
andBuffer::usage()
; by @kpreid in #2923alpha_mode
on SurfaceConfiguration, by @jinleili in #2836AdapterInfo
, by @i509VCB in #3037copy_external_image_to_texture
on WebGPU, by @ybiletskyi in #2781Bug Fixes
General
StagingBuffers
even when an error occurs in the operation that consumes them. By @jimblandy in #2961wasm32-unknown-unknown
by @Seamooo in #2922BufferUsages
mismatches whenFeatures::MAPPABLE_PRIMARY_BUFFERS
is notenabled. By @imberflur in #3023
CommandEncoder
not beingSend
andSync
on web by @i509VCB in #3025vendor
inAdapterInfo
if the vendor has no PCI id.Metal
msg_send![view, retain]
call withinfrom_view
by @jinleili in #2976max_buffer
max_texture
andmax_vertex_buffers
limits by @jinleili in #2978format_rgb10a2_unorm_surface
field by @jinleili in #2981_buffer_sizes
encoding by @dtiselice in #3047Vulkan
astc_hdr
formats support by @jinleili in [#2971]][https://github.com/gfx-rs/wgpu/pull/2971](https://togithub.com/gfx-rs/wgpu/pull/2971)1)b209d91
(2022-9-1) to avoid generating SPIR-V thatviolates Vulkan valid usage rules
VUID-StandaloneSpirv-Flat-06202
and
VUID-StandaloneSpirv-Flat-04744
. By @jimblandy in#3008
dependent extensions are not available by @i509VCB in #3054.
GLES
WebGPU
Context::init()
now usesweb_sys::WorkerGlobalContext
to create awgpu::Instance
instead of trying to access the unavailableweb_sys::Window
by @JolifantoBambla in #2858Changes
General
parameters instead of passing an impl trait over both HasRawDisplayHandle and HasRawWindowHandle. By @i509VCB in #3022
Instance::as_hal<A>
to just return anOption<&A::Instance>
rather than taking a callback. By @jimb in #2991InvalidFormatUsages
error by @Seamooo in #2886PhantomData
forIdentityManager
'sInput
type. By @jimblandy in #2972Cow<'static, Module>
, to allow loading global variables by @daxpedda in #2903Metal
get_metal_layer
by @jinleili in #2826Vulkan
wgpu
users to accessvk::Queue
and the queue index. By @anlumo in #2950VkPhysicalDeviceProperties.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 #3046GLES
Rgba16Float
format support for color attachments. By @jinleili in #3045TEXTURE_COMPRESSION_ASTC_HDR
feature detection by @jinleili in #3042Performance
StagingBelt::write_buffer()
check more thoroughly for reusable memory; by @kpreid in #2906Documentation
wgpu_core
resource allocation. @jimblandy in #2973StagingBelt
documentation by @kpreid in #2905Instance::create_surface_from_canvas
andInstance::create_surface_from_offscreen_canvas
regarding theirsafety contract. These functions are not unsafe. By @jimblandy #2990
write_buffer_with()
is sound but unwise to read from by @kpreid in #3006Adapter::as_hal
andDevice::as_hal
have to take callback functions. By @jimblandy in #2992Dependency Updates
WebGPU
alpha_mode
on web target by @jinleili in #3040Build Configuration
"strict_asserts"
feature, to enable additional internalrun-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
andcargo 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.
This PR has been generated by Mend Renovate. View repository job log here.