gpu: add IndexFormat enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
8a9b18575a
commit
2779b6944c
2 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue