gpu: add RequestDeviceStatus enum

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

View file

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