gpu: make Instance an enum with methods

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 00:15:48 -07:00 committed by Stephen Gutekanst
parent 81b8caa48c
commit 1fefc7e66b
2 changed files with 7 additions and 3 deletions

View file

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