gpu: add PipelineStatisticName enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-11 07:55:10 -07:00 committed by Stephen Gutekanst
parent 18dd84d6a5
commit 806ec0d147
2 changed files with 8 additions and 9 deletions

View file

@ -157,6 +157,14 @@ pub const LoggingType = enum(u32) {
err = 0x00000003,
};
pub const PipelineStatisticName = enum(u32) {
vertex_shader_invocations = 0x00000000,
clipper_invocations = 0x00000001,
clipper_primitives_out = 0x00000002,
fragment_shader_invocations = 0x00000003,
compute_shader_invocations = 0x00000004,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}