gpu: make Surface an enum with methods

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 00:24:08 -07:00 committed by Stephen Gutekanst
parent 4413860d92
commit 94ca8ffe35
2 changed files with 7 additions and 3 deletions

View file

@ -1 +1,5 @@
ptr: *anyopaque,
pub const Surface = enum(usize) {
_,
pub const none: Surface = @intToEnum(Surface, 0);
};