gpu: centralize PresentMode -> enums.zig
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2d815daca2
commit
48c496c3e5
6 changed files with 11 additions and 14 deletions
|
|
@ -22,6 +22,12 @@ const AddressMode = enum(u32) {
|
|||
clamp_to_edge = 0x00000002,
|
||||
};
|
||||
|
||||
pub const PresentMode = enum(u32) {
|
||||
immediate = 0x00000000,
|
||||
mailbox = 0x00000001,
|
||||
fifo = 0x00000002,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -29,4 +35,5 @@ test "name" {
|
|||
test "syntax" {
|
||||
_ = Feature;
|
||||
_ = AddressMode;
|
||||
_ = PresentMode;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue