gpu: add PipelineStatistic enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e539b62e35
commit
a397984089
2 changed files with 10 additions and 0 deletions
|
|
@ -274,6 +274,14 @@ pub const LoggingType = enum(u32) {
|
||||||
err = 0x00000003,
|
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" {
|
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"));
|
||||||
}
|
}
|
||||||
|
|
@ -301,4 +309,5 @@ test "syntax" {
|
||||||
_ = IndexFormat;
|
_ = IndexFormat;
|
||||||
_ = LoadOp;
|
_ = LoadOp;
|
||||||
_ = LoggingType;
|
_ = LoggingType;
|
||||||
|
_ = PipelineStatistic;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ pub const FrontFace = @import("enums.zig").FrontFace;
|
||||||
pub const IndexFormat = @import("enums.zig").IndexFormat;
|
pub const IndexFormat = @import("enums.zig").IndexFormat;
|
||||||
pub const LoadOp = @import("enums.zig").LoadOp;
|
pub const LoadOp = @import("enums.zig").LoadOp;
|
||||||
pub const LoggingType = @import("enums.zig").LoggingType;
|
pub const LoggingType = @import("enums.zig").LoggingType;
|
||||||
|
pub const PipelineStatistic = @import("enums.zig").PipelineStatistic;
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = Interface;
|
_ = Interface;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue