gpu: add FilterMode enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 10:48:05 -07:00 committed by Stephen Gutekanst
parent 916e1a5d21
commit 81e5302b2d
2 changed files with 7 additions and 0 deletions

View file

@ -245,6 +245,11 @@ pub const ErrorType = enum(u32) {
device_lost = 0x00000004,
};
pub const FilterMode = enum(u32) {
nearest = 0x00000000,
linear = 0x00000001,
};
test "name" {
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
}
@ -267,4 +272,5 @@ test "syntax" {
_ = DeviceLostReason;
_ = ErrorFilter;
_ = ErrorType;
_ = FilterMode;
}

View file

@ -55,6 +55,7 @@ pub const CullMode = @import("enums.zig").CullMode;
pub const DeviceLostReason = @import("enums.zig").DeviceLostReason;
pub const ErrorFilter = @import("enums.zig").ErrorFilter;
pub const ErrorType = @import("enums.zig").ErrorType;
pub const FilterMode = @import("enums.zig").FilterMode;
test "syntax" {
_ = Interface;