gpu: add IndexFormat enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
6e8e0febdd
commit
71e6049ada
2 changed files with 6 additions and 7 deletions
|
|
@ -138,6 +138,12 @@ pub const FrontFace = enum(u32) {
|
|||
cw = 0x00000001,
|
||||
};
|
||||
|
||||
pub const IndexFormat = enum(u32) {
|
||||
undef = 0x00000000,
|
||||
uint16 = 0x00000001,
|
||||
uint32 = 0x00000002,
|
||||
};
|
||||
|
||||
test "BackendType name" {
|
||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue