Skip to content

Commit

Permalink
feature gate atomic spv tests because they require wgsl-[in,out]
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Sep 6, 2024
1 parent 353e10b commit 2695c3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions naga/src/front/spv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5963,7 +5963,10 @@ mod test {
];
let _ = super::parse_u8_slice(&bin, &Default::default()).unwrap();
}
}

#[cfg(all(test, feature = "wgsl-in", wgsl_out))]
mod test_atomic {
fn atomic_test(bytes: &[u8]) {
let _ = env_logger::builder().is_test(true).try_init();
let m = crate::front::spv::parse_u8_slice(bytes, &Default::default()).unwrap();
Expand Down

0 comments on commit 2695c3c

Please sign in to comment.