gpu: add RequestAdapterStatus enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-11 08:00:56 -07:00 committed by Stephen Gutekanst
parent fbed4402de
commit f354ba3a4c
2 changed files with 7 additions and 8 deletions

View file

@ -196,6 +196,13 @@ pub const RenderPassTimestampLocation = enum(u32) {
end = 0x00000001,
};
pub const RequestAdapterStatus = enum(u32) {
success = 0x00000000,
unavailable = 0x00000001,
err = 0x00000002,
unknown = 0x00000003,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}