gpu: add StencilOperation enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-11 08:10:32 -07:00 committed by Stephen Gutekanst
parent 1d8f6f9064
commit 0883421905
2 changed files with 11 additions and 12 deletions

View file

@ -233,6 +233,17 @@ pub const SType = enum(u32) {
dawn_cache_device_descriptor = 0x000003ED,
};
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 "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}