gpu: add CompareFunction enum

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

View file

@ -183,6 +183,18 @@ pub const BufferMapAsyncStatus = enum(u32) {
unmapped_before_callback = 0x00000005,
};
pub const CompareFunction = enum(u32) {
none = 0x00000000,
never = 0x00000001,
less = 0x00000002,
less_equal = 0x00000003,
greater = 0x00000004,
greater_equal = 0x00000005,
equal = 0x00000006,
not_equal = 0x00000007,
always = 0x00000008,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -196,4 +208,5 @@ test "syntax" {
_ = BlendOperation;
_ = BufferBindingType;
_ = BufferMapAsyncStatus;
_ = CompareFunction;
}

View file

@ -46,6 +46,7 @@ pub const BlendFactor = @import("enums.zig").BlendFactor;
pub const BlendOperation = @import("enums.zig").BlendOperation;
pub const BufferBindingType = @import("enums.zig").BufferBindingType;
pub const BufferMapAsyncStatus = @import("enums.zig").BufferMapAsyncStatus;
pub const CompareFunction = @import("enums.zig").CompareFunction;
test "syntax" {
_ = Interface;