gpu: add LoggingType enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:53:27 -07:00 committed by Stephen Gutekanst
parent 704b3d5c3c
commit e539b62e35
2 changed files with 9 additions and 0 deletions

View file

@ -267,6 +267,13 @@ pub const LoadOp = enum(u32) {
load = 0x00000002,
};
pub const LoggingType = enum(u32) {
verbose = 0x00000000,
info = 0x00000001,
warning = 0x00000002,
err = 0x00000003,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -293,4 +300,5 @@ test "syntax" {
_ = FrontFace;
_ = IndexFormat;
_ = LoadOp;
_ = LoggingType;
}

View file

@ -59,6 +59,7 @@ pub const FilterMode = @import("enums.zig").FilterMode;
pub const FrontFace = @import("enums.zig").FrontFace;
pub const IndexFormat = @import("enums.zig").IndexFormat;
pub const LoadOp = @import("enums.zig").LoadOp;
pub const LoggingType = @import("enums.zig").LoggingType;
test "syntax" {
_ = Interface;