gpu: make TextureView an enum with methods

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 00:26:54 -07:00 committed by Stephen Gutekanst
parent 05f153009d
commit 9f77103cae
3 changed files with 17 additions and 13 deletions

15
gpu/src/texture_view.zig Normal file
View file

@ -0,0 +1,15 @@
pub const TextureView = enum(usize) {
_,
pub const none: TextureView = @intToEnum(TextureView, 0);
pub const Dimension = enum(u32) {
dimension_undef = 0x00000000,
dimension_1d = 0x00000001,
dimension_2d = 0x00000002,
dimension_2d_array = 0x00000003,
dimension_cube = 0x00000004,
dimension_cube_array = 0x00000005,
dimension_3d = 0x00000006,
};
};