gpu: add PresentMode enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-11 07:56:07 -07:00 committed by Stephen Gutekanst
parent 792e64906f
commit 327b0f9257
2 changed files with 6 additions and 7 deletions

View file

@ -171,6 +171,12 @@ pub const PowerPreference = enum(u32) {
high_performance = 0x00000002,
};
pub const PresentMode = enum(u32) {
immediate = 0x00000000,
mailbox = 0x00000001,
fifo = 0x00000002,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}