gpu: add StoreOp enum

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

View file

@ -335,6 +335,12 @@ pub const StorageTextureAccess = enum(u32) {
write_only = 0x00000001,
};
pub const StoreOp = enum(u32) {
none = 0x00000000,
store = 0x00000001,
discard = 0x00000002,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -371,4 +377,5 @@ test "syntax" {
_ = SamplerBindingType;
_ = StencilOperation;
_ = StorageTextureAccess;
_ = StoreOp;
}

View file

@ -69,6 +69,7 @@ pub const RenderPassTimestampLocation = @import("enums.zig").RenderPassTimestamp
pub const SamplerBindingType = @import("enums.zig").SamplerBindingType;
pub const StencilOperation = @import("enums.zig").StencilOperation;
pub const StorageTextureAccess = @import("enums.zig").StorageTextureAccess;
pub const StoreOp = @import("enums.zig").StoreOp;
test "syntax" {
_ = Interface;