You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@ Bottom level categories:
39
39
-->
40
40
41
41
## Unreleased
42
+
42
43
### Major changes
43
44
44
45
#### TextureFormat info API
@@ -81,6 +82,21 @@ The following `Features` have been renamed.
81
82
82
83
By @teoxoy in [#3534](https://github.com/gfx-rs/wgpu/pull/3534)
83
84
85
+
#### Anisotropic Filtering
86
+
87
+
Anisotropic filtering has been brought in line with the spec. The anisotropic clamp is now a u16 (was a `Option<u8>`) which must be at least 1.
88
+
89
+
If the anisotropy clamp is not 1, all the filters in a sampler must be `Linear`.
90
+
91
+
```diff
92
+
SamplerDescriptor {
93
+
- anisotropic_clamp: None,
94
+
+ anisotropic_clamp: 1,
95
+
}
96
+
```
97
+
98
+
By @cwfitzgerald in [#3610](https://github.com/gfx-rs/wgpu/pull/3610).
99
+
84
100
#### General
85
101
86
102
- Change type of `mip_level_count` and `array_layer_count` (members of `TextureViewDescriptor` and `ImageSubresourceRange`) from `Option<NonZeroU32>` to `Option<u32>`. By @teoxoy in [#3445](https://github.com/gfx-rs/wgpu/pull/3445)
@@ -113,6 +129,9 @@ By @teoxoy in [#3534](https://github.com/gfx-rs/wgpu/pull/3534)
113
129
114
130
### Bug Fixes
115
131
132
+
#### Metal
133
+
- Fix incorrect mipmap being sampled when using `MinLod <= 0.0` and `MaxLod >= 32.0` or when the fragment shader samples different Lods in the same quad. By @cwfitzgerald in [#3610](https://github.com/gfx-rs/wgpu/pull/3610).
134
+
116
135
#### DX12
117
136
118
137
- Fix DXC validation issues when using a custom `dxil_path`. By @Elabajaba in [#3434](https://github.com/gfx-rs/wgpu/pull/3434)
#[error("Invalid lod clamp lod_min_clamp:{} lod_max_clamp:{}, must satisfy lod_min_clamp >= 0 and lod_max_clamp >= lod_min_clamp ",.0.start,.0.end)]
732
-
InvalidLodClamp(Range<f32>),
733
-
#[error("Invalid anisotropic clamp {0}, must be one of 1, 2, 4, 8 or 16")]
734
-
InvalidClamp(u8),
731
+
#[error("Invalid lodMinClamp: {0}. Must be greater or equal to 0.0")]
732
+
InvalidLodMinClamp(f32),
733
+
#[error("Invalid lodMaxClamp: {lod_max_clamp}. Must be greater or equal to lodMinClamp (which is {lod_min_clamp}).")]
734
+
InvalidLodMaxClamp{
735
+
lod_min_clamp:f32,
736
+
lod_max_clamp:f32,
737
+
},
738
+
#[error("Invalid anisotropic clamp: {0}. Must be at least 1.")]
739
+
InvalidAnisotropy(u16),
740
+
#[error("Invalid filter mode for {filter_type:?}: {filter_mode:?}. When anistropic clamp is not 1 (it is {anisotropic_clamp}), all filter modes must be linear.")]
0 commit comments