gpu: add PrimitiveTopology enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-11 07:56:48 -07:00 committed by Stephen Gutekanst
parent 327b0f9257
commit c91fd182ce
2 changed files with 8 additions and 9 deletions

View file

@ -177,6 +177,14 @@ pub const PresentMode = enum(u32) {
fifo = 0x00000002,
};
pub const PrimitiveTopology = enum(u32) {
point_list = 0x00000000,
line_list = 0x00000001,
line_strip = 0x00000002,
triangle_list = 0x00000003,
triangle_strip = 0x00000004,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}