gpu: add QueryType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2da18c9d56
commit
d27fe51257
2 changed files with 8 additions and 0 deletions
|
|
@ -301,6 +301,12 @@ pub const PrimitiveTopology = enum(u32) {
|
|||
triangle_strip = 0x00000004,
|
||||
};
|
||||
|
||||
pub const QueryType = enum(u32) {
|
||||
occlusion = 0x00000000,
|
||||
pipeline_statistics = 0x00000001,
|
||||
timestamp = 0x00000002,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -332,4 +338,5 @@ test "syntax" {
|
|||
_ = PowerPreference;
|
||||
_ = PredefinedColorSpace;
|
||||
_ = PrimitiveTopology;
|
||||
_ = QueryType;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue