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

View file

@ -30,7 +30,7 @@ pub const RenderPipeline = @import("render_pipeline.zig").RenderPipeline;
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("SwapChain.zig");
pub const SwapChain = @import("swap_chain.zig").SwapChain;
pub const Texture = @import("Texture.zig");
pub const TextureView = @import("TextureView.zig");
@ -58,7 +58,7 @@ test {
refAllDecls(@import("sampler.zig"));
refAllDecls(@import("shader_module.zig"));
refAllDecls(@import("surface.zig"));
refAllDecls(@import("SwapChain.zig"));
refAllDecls(@import("swap_chain.zig"));
refAllDecls(@import("Texture.zig"));
refAllDecls(@import("TextureView.zig"));
refAllDecls(@import("types.zig"));