gpu: add CullMode enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:44:09 -07:00 committed by Stephen Gutekanst
parent 8e01379ef2
commit 4fb873b4a3
2 changed files with 8 additions and 0 deletions

View file

@ -221,6 +221,12 @@ pub const CreatePipelineAsyncStatus = enum(u32) {
unknown = 0x00000004,
};
pub const CullMode = enum(u32) {
none = 0x00000000,
front = 0x00000001,
back = 0x00000002,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -239,4 +245,5 @@ test "syntax" {
_ = CompilationMessageType;
_ = ComputePassTimestampLocation;
_ = CreatePipelineAsyncStatus;
_ = CullMode;
}