gpu: add PipelineStatistic enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:54:26 -07:00 committed by Stephen Gutekanst
parent e539b62e35
commit a397984089
2 changed files with 10 additions and 0 deletions

View file

@ -274,6 +274,14 @@ pub const LoggingType = enum(u32) {
err = 0x00000003,
};
pub const PipelineStatistic = enum(u32) {
vertex_shader_invocations = 0x00000000,
clipper_invocations = 0x00000001,
clipper_primitives_out = 0x00000002,
fragment_shader_invocations = 0x00000003,
compute_shader_invocations = 0x00000004,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -301,4 +309,5 @@ test "syntax" {
_ = IndexFormat;
_ = LoadOp;
_ = LoggingType;
_ = PipelineStatistic;
}

View file

@ -60,6 +60,7 @@ pub const FrontFace = @import("enums.zig").FrontFace;
pub const IndexFormat = @import("enums.zig").IndexFormat;
pub const LoadOp = @import("enums.zig").LoadOp;
pub const LoggingType = @import("enums.zig").LoggingType;
pub const PipelineStatistic = @import("enums.zig").PipelineStatistic;
test "syntax" {
_ = Interface;