File: display.rs

package info (click to toggle)
rust-ash 0.38.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,416 kB
  • sloc: makefile: 4
file content (17 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (41)
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");
}