This repository has been archived by the owner on May 31, 2023. It is now read-only.
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.16
Release Notes
gfx-rs/wgpu
v0.16.0
Compare Source
Major changes
Shader Changes
type
has been replaced withalias
to match with upstream WebGPU.TextureFormat info API
The
TextureFormat::describe
function was removed in favor of separate functions:block_dimensions
,is_compressed
,is_srgb
,required_features
,guaranteed_format_features
,sample_type
andblock_size
.Additionally
guaranteed_format_features
now takes a set of features to assume are enabled.Additionally
sample_type
andblock_size
now take an optionalTextureAspect
and returnOption
s.By @teoxoy in #3436
BufferUsages::QUERY_RESOLVE
Buffers used as the
destination
argument ofCommandEncoder::resolve_query_set
now have to contain theQUERY_RESOLVE
usage instead of theCOPY_DST
usage.By @JolifantoBambla in #3489
Renamed features
The following
Features
have been renamed.SHADER_FLOAT16
->SHADER_F16
SHADER_FLOAT64
->SHADER_F64
SHADER_INT16
->SHADER_I16
TEXTURE_COMPRESSION_ASTC_LDR
->TEXTURE_COMPRESSION_ASTC
WRITE_TIMESTAMP_INSIDE_PASSES
->TIMESTAMP_QUERY_INSIDE_PASSES
By @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
.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_count
andarray_layer_count
(members ofTextureViewDescriptor
andImageSubresourceRange
) fromOption<NonZeroU32>
toOption<u32>
. By @teoxoy in #3445bytes_per_row
androws_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 #3494fxhash
dependencies have been replaced withrustc-hash
. By @james7132 in #3502TextureSampleType::Float
on 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_size
viaPhysicalDeviceMaintenance3Properties
. By @jinleili in #3567Bug Fixes
General
copyTextureToTexture
src/dst aspects must both refer to all aspects of src/dst format. By @teoxoy in #3431WebGPU
None
values fordepth_ops
andstencil_ops
inRenderPassDescriptor::depth_stencil_attachment
. By @niklaskorz in #3660WasmAbi
functions for WebGPU backend. By @grovesNL in #3657DX12
GLES
surface.configure
. By @cwfitzgerald in #3585copy_external_image_to_texture
,copy_texture_to_texture
andcopy_buffer_to_texture
not 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_stride
of 0. By @teoxoy in #3538create_texture
returns an error ifnew_texture
returns NULL. By @jinleili in #3554Vulkan
VK_SUBOPTIMAL_KHR
asVK_SUCCESS
on Android due to rotation issues. By @James2022-rgb in #3525Examples
BufferUsages::QUERY_RESOLVE
instead ofBufferUsages::COPY_DST
for buffers used inCommandEncoder::resolve_query_set
calls inmipmap
example. By @JolifantoBambla in #3489v0.15.1
Compare 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.