gpu: add FilterMode enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
916e1a5d21
commit
81e5302b2d
2 changed files with 7 additions and 0 deletions
|
|
@ -245,6 +245,11 @@ pub const ErrorType = enum(u32) {
|
||||||
device_lost = 0x00000004,
|
device_lost = 0x00000004,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const FilterMode = enum(u32) {
|
||||||
|
nearest = 0x00000000,
|
||||||
|
linear = 0x00000001,
|
||||||
|
};
|
||||||
|
|
||||||
test "name" {
|
test "name" {
|
||||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||||
}
|
}
|
||||||
|
|
@ -267,4 +272,5 @@ test "syntax" {
|
||||||
_ = DeviceLostReason;
|
_ = DeviceLostReason;
|
||||||
_ = ErrorFilter;
|
_ = ErrorFilter;
|
||||||
_ = ErrorType;
|
_ = ErrorType;
|
||||||
|
_ = FilterMode;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ pub const CullMode = @import("enums.zig").CullMode;
|
||||||
pub const DeviceLostReason = @import("enums.zig").DeviceLostReason;
|
pub const DeviceLostReason = @import("enums.zig").DeviceLostReason;
|
||||||
pub const ErrorFilter = @import("enums.zig").ErrorFilter;
|
pub const ErrorFilter = @import("enums.zig").ErrorFilter;
|
||||||
pub const ErrorType = @import("enums.zig").ErrorType;
|
pub const ErrorType = @import("enums.zig").ErrorType;
|
||||||
|
pub const FilterMode = @import("enums.zig").FilterMode;
|
||||||
|
|
||||||
test "syntax" {
|
test "syntax" {
|
||||||
_ = Interface;
|
_ = Interface;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue