gpu: add ErrorFilter enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:46:16 -07:00 committed by Stephen Gutekanst
parent 69e69c0d5f
commit dab4aeab00
2 changed files with 7 additions and 0 deletions

View file

@ -232,6 +232,11 @@ pub const DeviceLostReason = enum(u32) {
destroyed = 0x00000001,
};
pub const ErrorFilter = enum(u32) {
validation = 0x00000000,
out_of_memory = 0x00000001,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -252,4 +257,5 @@ test "syntax" {
_ = CreatePipelineAsyncStatus;
_ = CullMode;
_ = DeviceLostReason;
_ = ErrorFilter;
}