gpu: add StencilOperation enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:58:07 -07:00 committed by Stephen Gutekanst
parent 64ba2df824
commit f3d6d5de1e
2 changed files with 13 additions and 0 deletions

View file

@ -319,6 +319,17 @@ pub const SamplerBindingType = enum(u32) {
comparison = 0x00000003,
};
pub const StencilOperation = enum(u32) {
keep = 0x00000000,
zero = 0x00000001,
replace = 0x00000002,
invert = 0x00000003,
increment_clamp = 0x00000004,
decrement_clamp = 0x00000005,
increment_wrap = 0x00000006,
decrement_wrap = 0x00000007,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -353,4 +364,5 @@ test "syntax" {
_ = QueryType;
_ = RenderPassTimestampLocation;
_ = SamplerBindingType;
_ = StencilOperation;
}

View file

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