gpu: add LoadOp enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:51:58 -07:00 committed by Stephen Gutekanst
parent 2779b6944c
commit 704b3d5c3c
2 changed files with 8 additions and 0 deletions

View file

@ -261,6 +261,12 @@ pub const IndexFormat = enum(u32) {
uint32 = 0x00000002,
};
pub const LoadOp = enum(u32) {
none = 0x00000000,
clear = 0x00000001,
load = 0x00000002,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -286,4 +292,5 @@ test "syntax" {
_ = FilterMode;
_ = FrontFace;
_ = IndexFormat;
_ = LoadOp;
}