summaryrefslogtreecommitdiffstats
path: root/third_party/rust/ash/tests/display.rs
blob: f4131fdc7c579500de6ea1c82654053088b36425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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");
}