gpu: add ErrorType enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-11 06:43:26 -07:00 committed by Stephen Gutekanst
parent 85e431a956
commit 45704d990e
2 changed files with 8 additions and 9 deletions

View file

@ -102,6 +102,14 @@ pub const ErrorFilter = enum(u32) {
out_of_memory = 0x00000001,
};
pub const ErrorType = enum(u32) {
no_error = 0x00000000,
validation = 0x00000001,
out_of_memory = 0x00000002,
unknown = 0x00000003,
device_lost = 0x00000004,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}