We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33689dd commit 1d65643Copy full SHA for 1d65643
crates/lambda-rs-platform/src/wgpu/texture.rs
@@ -1182,4 +1182,26 @@ mod tests {
1182
16
1183
);
1184
}
1185
+
1186
+ #[test]
1187
+ fn sampler_builder_anisotropy_is_disabled_when_filters_not_all_linear() {
1188
+ // Default builder uses nearest filters, so anisotropy must be disabled.
1189
+ assert_eq!(
1190
+ SamplerBuilder::new()
1191
+ .with_anisotropy_clamp(8)
1192
+ .to_descriptor(16)
1193
+ .anisotropy_clamp,
1194
+ 1
1195
+ );
1196
1197
+ // If mipmap filtering isn't linear, anisotropy must be disabled.
1198
1199
1200
+ .linear()
1201
1202
1203
1204
1205
1206
+ }
1207
0 commit comments