gpu: add RenderPassTimestampLocation enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
d27fe51257
commit
7876582785
2 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue