gpu: make SwapChain an enum with methods

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

5
gpu/src/swap_chain.zig Normal file
View file

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