gpu: make Surface an enum with methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4413860d92
commit
94ca8ffe35
2 changed files with 7 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ pub const RenderPassEncoder = @import("render_pass_encoder.zig").RenderPassEncod
|
|||
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");
|
||||
pub const Surface = @import("surface.zig").Surface;
|
||||
pub const SwapChain = @import("SwapChain.zig");
|
||||
pub const Texture = @import("Texture.zig");
|
||||
pub const TextureView = @import("TextureView.zig");
|
||||
|
|
@ -57,7 +57,7 @@ test {
|
|||
refAllDecls(@import("render_pipeline.zig"));
|
||||
refAllDecls(@import("sampler.zig"));
|
||||
refAllDecls(@import("shader_module.zig"));
|
||||
refAllDecls(@import("Surface.zig"));
|
||||
refAllDecls(@import("surface.zig"));
|
||||
refAllDecls(@import("SwapChain.zig"));
|
||||
refAllDecls(@import("Texture.zig"));
|
||||
refAllDecls(@import("TextureView.zig"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue