gpu: make ExternalTexture an enum with methods

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

View file

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