Fix forward of 60749: the requirements test's loop over one kind
Job 60749 (clippy and tests of metal2vulkan at 85ef8a373d) failed clippy alone: with ResourceKind::ExtendedShadow gone, the requirements test that a color's storage form writes are not the function's looped over one kind (clippy's single_element_loop). It now checks TileAttachment directly, and its name and doc lose the shadow. Its tests passed (557 of 557). No version or pin changes. Verified: nothing yet for this commit (a check job is owed).
This commit is contained in:
1 parent
c4b56b0b38
commit
2028eb6356
1 file changed
+5
-10
@@ -244,17 +244,12 @@ fn the_shadow_stencils_writes_are_not_the_functions() {
|
||||
assert!(writes_memory(&image_write(imageblock)).expect("another image"));
|
||||
}
|
||||
|
||||
/// A color's interlocked storage form and an extended-range color's `half` shadow are the
|
||||
/// product's, carrying Metal's color attachment write, so their writes are not the function's; a
|
||||
/// texture's write is.
|
||||
/// A color's interlocked storage form is the product's, carrying Metal's color attachment write,
|
||||
/// so its writes are not the function's; a texture's write is.
|
||||
#[test]
|
||||
fn a_colors_storage_form_and_half_shadow_writes_are_not_the_functions() {
|
||||
for kind in [ResourceKind::TileAttachment(2)] {
|
||||
assert!(
|
||||
!writes_memory(&image_write(kind)).expect("color"),
|
||||
"{kind:?}"
|
||||
);
|
||||
}
|
||||
fn a_colors_storage_form_writes_are_not_the_functions() {
|
||||
let color = ResourceKind::TileAttachment(2);
|
||||
assert!(!writes_memory(&image_write(color)).expect("color"));
|
||||
assert!(writes_memory(&image_write(ResourceKind::Texture)).expect("a texture"));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user