gpu: add LoggingType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
704b3d5c3c
commit
e539b62e35
2 changed files with 9 additions and 0 deletions
|
|
@ -267,6 +267,13 @@ pub const LoadOp = enum(u32) {
|
||||||
load = 0x00000002,
|
load = 0x00000002,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const LoggingType = enum(u32) {
|
||||||
|
verbose = 0x00000000,
|
||||||
|
info = 0x00000001,
|
||||||
|
warning = 0x00000002,
|
||||||
|
err = 0x00000003,
|
||||||
|
};
|
||||||
|
|
||||||
test "name" {
|
test "name" {
|
||||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||||
}
|
}
|
||||||
|
|
@ -293,4 +300,5 @@ test "syntax" {
|
||||||
_ = FrontFace;
|
_ = FrontFace;
|
||||||
_ = IndexFormat;
|
_ = IndexFormat;
|
||||||
_ = LoadOp;
|
_ = LoadOp;
|
||||||
|
_ = LoggingType;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ pub const FilterMode = @import("enums.zig").FilterMode;
|
||||||
pub const FrontFace = @import("enums.zig").FrontFace;
|
pub const FrontFace = @import("enums.zig").FrontFace;
|
||||||
pub const IndexFormat = @import("enums.zig").IndexFormat;
|
pub const IndexFormat = @import("enums.zig").IndexFormat;
|
||||||
pub const LoadOp = @import("enums.zig").LoadOp;
|
pub const LoadOp = @import("enums.zig").LoadOp;
|
||||||
|
pub const LoggingType = @import("enums.zig").LoggingType;
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = Interface;
|
_ = Interface;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue