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,
|
srgb = 0x00000001,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const PrimitiveTopology = enum(u32) {
|
||||||
|
point_list = 0x00000000,
|
||||||
|
line_list = 0x00000001,
|
||||||
|
line_strip = 0x00000002,
|
||||||
|
triangle_list = 0x00000003,
|
||||||
|
triangle_strip = 0x00000004,
|
||||||
|
};
|
||||||
|
|
||||||
test "name" {
|
test "name" {
|
||||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||||
}
|
}
|
||||||
|
|
@ -323,4 +331,5 @@ test "syntax" {
|
||||||
_ = PipelineStatistic;
|
_ = PipelineStatistic;
|
||||||
_ = PowerPreference;
|
_ = PowerPreference;
|
||||||
_ = PredefinedColorSpace;
|
_ = PredefinedColorSpace;
|
||||||
|
_ = PrimitiveTopology;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@ pub const LoggingType = @import("enums.zig").LoggingType;
|
||||||
pub const PipelineStatistic = @import("enums.zig").PipelineStatistic;
|
pub const PipelineStatistic = @import("enums.zig").PipelineStatistic;
|
||||||
pub const PowerPreference = @import("enums.zig").PowerPreference;
|
pub const PowerPreference = @import("enums.zig").PowerPreference;
|
||||||
pub const PredefinedColorSpace = @import("enums.zig").PredefinedColorSpace;
|
pub const PredefinedColorSpace = @import("enums.zig").PredefinedColorSpace;
|
||||||
|
pub const PrimitiveTopology = @import("enums.zig").PrimitiveTopology;
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = Interface;
|
_ = Interface;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue