gpu: add IndexFormat enum

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

View file

@ -255,6 +255,12 @@ pub const FrontFace = enum(u32) {
cw = 0x00000001,
};
pub const IndexFormat = enum(u32) {
none = 0x00000000,
uint16 = 0x00000001,
uint32 = 0x00000002,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -279,4 +285,5 @@ test "syntax" {
_ = ErrorType;
_ = FilterMode;
_ = FrontFace;
_ = IndexFormat;
}

View file

@ -57,6 +57,7 @@ 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;
pub const IndexFormat = @import("enums.zig").IndexFormat;
test "syntax" {
_ = Interface;