This repository was archived by the owner on May 31, 2023. It is now read-only.
Update Rust crate wgpu to 0.16 - #30
Open
renovate[bot] wants to merge 5 commits into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/wgpu-0.x
branch
from
April 30, 2023 01:37
388552c to
4b08f40
Compare
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.15->0.16Release Notes
gfx-rs/wgpu
v0.16.0Compare Source
Major changes
Shader Changes
typehas been replaced withaliasto match with upstream WebGPU.TextureFormat info API
The
TextureFormat::describefunction was removed in favor of separate functions:block_dimensions,is_compressed,is_srgb,required_features,guaranteed_format_features,sample_typeandblock_size.Additionally
guaranteed_format_featuresnow takes a set of features to assume are enabled.Additionally
sample_typeandblock_sizenow take an optionalTextureAspectand returnOptions.By @teoxoy in #3436
BufferUsages::QUERY_RESOLVE
Buffers used as the
destinationargument ofCommandEncoder::resolve_query_setnow have to contain theQUERY_RESOLVEusage instead of theCOPY_DSTusage.let destination = device.create_buffer(&wgpu::BufferDescriptor { // ... - usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::MAP_READ, + usage: wgpu::BufferUsages::QUERY_RESOLVE | wgpu::BufferUsages::MAP_READ, mapped_at_creation: false, }); command_encoder.resolve_query_set(&query_set, query_range, &destination, destination_offset);By @JolifantoBambla in #3489
Renamed features
The following
Featureshave been renamed.SHADER_FLOAT16->SHADER_F16SHADER_FLOAT64->SHADER_F64SHADER_INT16->SHADER_I16TEXTURE_COMPRESSION_ASTC_LDR->TEXTURE_COMPRESSION_ASTCWRITE_TIMESTAMP_INSIDE_PASSES->TIMESTAMP_QUERY_INSIDE_PASSESBy @teoxoy in #3534
Anisotropic Filtering
Anisotropic filtering has been brought in line with the spec. The anisotropic clamp is now a
u16(was aOption<u8>) which must be at least 1.If the anisotropy clamp is not 1, all the filters in a sampler must be
Linear.SamplerDescriptor { - anisotropic_clamp: None, + anisotropic_clamp: 1, }By @cwfitzgerald in #3610.
TextureFormat Names
Some texture format names have changed to get back in line with the spec.
By @cwfitzgerald in #3671.
Misc Breaking Changes
mip_level_countandarray_layer_count(members ofTextureViewDescriptorandImageSubresourceRange) fromOption<NonZeroU32>toOption<u32>. By @teoxoy in #3445bytes_per_rowandrows_per_image(members ofImageDataLayout) fromOption<NonZeroU32>toOption<u32>. By @teoxoy in #3529Instance::create_surface_from_canvas()andcreate_surface_from_offscreen_canvas()now take the canvas by value. By @daxpedda in #3690Changes
General
TextureFormatFeatureFlags::MULTISAMPLE_X16. By @Dinnerbone in #3454BufferUsages::QUERY_RESOLVE. By @JolifantoBambla in #3489Features::SHADER_EARLY_DEPTH_TEST. By @teoxoy in #3494fxhashdependencies have been replaced withrustc-hash. By @james7132 in #3502TextureSampleType::Floaton a multisampleBindingType::Texture. By @mockersf in #3686Surface::configure(). If the canvas was given an explicit size (via CSS), this will not affect the visual size of the canvas. By @daxpedda in #3690WebGPU
adapter|device_features. By @jinleili in #3428command_encoder_resolve_query_set. By @JolifantoBambla in #3489Features::RG11B10UFLOAT_RENDERABLE. By @mockersf in #3689Vulkan
max_memory_allocation_sizeviaPhysicalDeviceMaintenance3Properties. By @jinleili in #3567Bug Fixes
General
copyTextureToTexturesrc/dst aspects must both refer to all aspects of src/dst format. By @teoxoy in #3431WebGPU
Nonevalues fordepth_opsandstencil_opsinRenderPassDescriptor::depth_stencil_attachment. By @niklaskorz in #3660WasmAbifunctions for WebGPU backend. By @grovesNL in #3657DX12
GLES
surface.configure. By @cwfitzgerald in #3585copy_external_image_to_texture,copy_texture_to_textureandcopy_buffer_to_texturenot taking the specified index into account if the target texture is a cube map, 2D texture array or cube map array. By @daxpedda #3641Metal
array_strideof 0. By @teoxoy in #3538create_texturereturns an error ifnew_texturereturns NULL. By @jinleili in #3554Vulkan
VK_SUBOPTIMAL_KHRasVK_SUCCESSon Android due to rotation issues. By @James2022-rgb in #3525Examples
BufferUsages::QUERY_RESOLVEinstead ofBufferUsages::COPY_DSTfor buffers used inCommandEncoder::resolve_query_setcalls inmipmapexample. By @JolifantoBambla in #3489v0.15.1Compare Source
Changes
General
Vulkan
DX12
WebGPU
CommandEncoder::clear_buffer. By @raphlinus in #3426Bug Fixes
General
Vulkan
DX12
dxil_path. By @Elabajaba in #3434GLES
WebGPU
{adapter|device}_features. By @jinleili in #3428Documentation
General
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.