gpu: make Surface an enum with methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4413860d92
commit
94ca8ffe35
2 changed files with 7 additions and 3 deletions
|
|
@ -1 +1,5 @@
|
|||
ptr: *anyopaque,
|
||||
pub const Surface = enum(usize) {
|
||||
_,
|
||||
|
||||
pub const none: Surface = @intToEnum(Surface, 0);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue