gpu: add QueryType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c91fd182ce
commit
9b1bee04fd
2 changed files with 6 additions and 7 deletions
|
|
@ -185,6 +185,12 @@ pub const PrimitiveTopology = enum(u32) {
|
|||
triangle_strip = 0x00000004,
|
||||
};
|
||||
|
||||
pub const QueryType = enum(u32) {
|
||||
occlusion = 0x00000000,
|
||||
pipeline_statistics = 0x00000001,
|
||||
timestamp = 0x00000002,
|
||||
};
|
||||
|
||||
test "BackendType name" {
|
||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue