gpu: add FrontFace enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:48:37 -07:00 committed by Stephen Gutekanst
parent 81e5302b2d
commit 8a9b18575a
2 changed files with 7 additions and 0 deletions

View file

@ -250,6 +250,11 @@ pub const FilterMode = enum(u32) {
linear = 0x00000001,
};
pub const FrontFace = enum(u32) {
ccw = 0x00000000,
cw = 0x00000001,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -273,4 +278,5 @@ test "syntax" {
_ = ErrorFilter;
_ = ErrorType;
_ = FilterMode;
_ = FrontFace;
}

View file

@ -56,6 +56,7 @@ pub const DeviceLostReason = @import("enums.zig").DeviceLostReason;
pub const ErrorFilter = @import("enums.zig").ErrorFilter;
pub const ErrorType = @import("enums.zig").ErrorType;
pub const FilterMode = @import("enums.zig").FilterMode;
pub const FrontFace = @import("enums.zig").FrontFace;
test "syntax" {
_ = Interface;