gpu: add PrimitiveTopology enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
1865d1c83a
commit
2da18c9d56
2 changed files with 10 additions and 0 deletions
|
|
@ -293,6 +293,14 @@ pub const PredefinedColorSpace = enum(u32) {
|
|||
srgb = 0x00000001,
|
||||
};
|
||||
|
||||
pub const PrimitiveTopology = enum(u32) {
|
||||
point_list = 0x00000000,
|
||||
line_list = 0x00000001,
|
||||
line_strip = 0x00000002,
|
||||
triangle_list = 0x00000003,
|
||||
triangle_strip = 0x00000004,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -323,4 +331,5 @@ test "syntax" {
|
|||
_ = PipelineStatistic;
|
||||
_ = PowerPreference;
|
||||
_ = PredefinedColorSpace;
|
||||
_ = PrimitiveTopology;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ pub const LoggingType = @import("enums.zig").LoggingType;
|
|||
pub const PipelineStatistic = @import("enums.zig").PipelineStatistic;
|
||||
pub const PowerPreference = @import("enums.zig").PowerPreference;
|
||||
pub const PredefinedColorSpace = @import("enums.zig").PredefinedColorSpace;
|
||||
pub const PrimitiveTopology = @import("enums.zig").PrimitiveTopology;
|
||||
|
||||
test "syntax" {
|
||||
_ = Interface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue