runtime: compare the chained structure's type without Debug in the subgroup size test
ash's StructureType implements no Debug without its debug feature, so assert_eq! of it does not compile under a device cfg (job m3-max-60674 on gem10: E0277 at tests/subgroup_sizes.rs:51).
This commit is contained in:
1 parent
640c74299c
commit
34537ad4b9
1 file changed
+4
-3
@@ -48,9 +48,10 @@ fn a_render_stage_is_made_at_the_subgroup_size_the_translator_pins() {
|
||||
// SAFETY: the fragment stage's chain is the one structure `stage_infos` pushed, which
|
||||
// `subgroups` holds alive and nothing writes.
|
||||
let chained = unsafe { &*chained };
|
||||
assert_eq!(
|
||||
chained.s_type,
|
||||
vk::StructureType::PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO
|
||||
assert!(
|
||||
chained.s_type
|
||||
== vk::StructureType::PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO,
|
||||
"the chained structure is the required subgroup size's"
|
||||
);
|
||||
assert_eq!(chained.required_subgroup_size, 32);
|
||||
assert!(chained.p_next.is_null(), "one structure chained");
|
||||
|
||||
Reference in new issue
Block a user