gpu: make Texture an enum with methods

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 00:25:36 -07:00 committed by Stephen Gutekanst
parent 2a65690ffc
commit 05f153009d
2 changed files with 158 additions and 154 deletions

View file

@ -31,7 +31,7 @@ pub const Sampler = @import("sampler.zig").Sampler;
pub const ShaderModule = @import("shader_module.zig").ShaderModule;
pub const Surface = @import("surface.zig").Surface;
pub const SwapChain = @import("swap_chain.zig").SwapChain;
pub const Texture = @import("Texture.zig");
pub const Texture = @import("texture.zig").Texture;
pub const TextureView = @import("TextureView.zig");
pub const AlphaMode = @import("types.zig").AlphaMode;
@ -59,7 +59,7 @@ test {
refAllDecls(@import("shader_module.zig"));
refAllDecls(@import("surface.zig"));
refAllDecls(@import("swap_chain.zig"));
refAllDecls(@import("Texture.zig"));
refAllDecls(@import("texture.zig"));
refAllDecls(@import("TextureView.zig"));
refAllDecls(@import("types.zig"));
}