diff options
Diffstat (limited to 'third_party/rust/ash/tests/display.rs')
-rw-r--r-- | third_party/rust/ash/tests/display.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/third_party/rust/ash/tests/display.rs b/third_party/rust/ash/tests/display.rs new file mode 100644 index 0000000000..f4131fdc7c --- /dev/null +++ b/third_party/rust/ash/tests/display.rs @@ -0,0 +1,17 @@ +use ash::vk; + +#[test] +fn debug_flags() { + assert_eq!( + format!( + "{:?}", + vk::AccessFlags::INDIRECT_COMMAND_READ | vk::AccessFlags::VERTEX_ATTRIBUTE_READ + ), + "INDIRECT_COMMAND_READ | VERTEX_ATTRIBUTE_READ" + ); +} + +#[test] +fn debug_enum() { + assert_eq!(format!("{:?}", vk::ChromaLocation::MIDPOINT), "MIDPOINT"); +} |