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