gpu: add RenderPassTimestampLocation enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:56:49 -07:00 committed by Stephen Gutekanst
parent d27fe51257
commit 7876582785
2 changed files with 7 additions and 0 deletions

View file

@ -307,6 +307,11 @@ pub const QueryType = enum(u32) {
timestamp = 0x00000002,
};
pub const RenderPassTimestampLocation = enum(u32) {
beginning = 0x00000000,
end = 0x00000001,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -339,4 +344,5 @@ test "syntax" {
_ = PredefinedColorSpace;
_ = PrimitiveTopology;
_ = QueryType;
_ = RenderPassTimestampLocation;
}

View file

@ -65,6 +65,7 @@ pub const PowerPreference = @import("enums.zig").PowerPreference;
pub const PredefinedColorSpace = @import("enums.zig").PredefinedColorSpace;
pub const PrimitiveTopology = @import("enums.zig").PrimitiveTopology;
pub const QueryType = @import("enums.zig").QueryType;
pub const RenderPassTimestampLocation = @import("enums.zig").RenderPassTimestampLocation;
test "syntax" {
_ = Interface;