gpu: move TextureFormat -> Texture.Format

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 15:45:39 -07:00 committed by Stephen Gutekanst
parent 281d6a2016
commit 2e68792f0d
6 changed files with 108 additions and 109 deletions

View file

@ -37,7 +37,6 @@ const CommandEncoder = @import("CommandEncoder.zig");
const ComputePassEncoder = @import("ComputePassEncoder.zig");
const ComputePipeline = @import("ComputePipeline.zig");
const TextureFormat = @import("enums.zig").TextureFormat;
const PresentMode = @import("enums.zig").PresentMode;
const NativeInstance = @This();
@ -510,7 +509,7 @@ const swap_chain_vtable = SwapChain.VTable{
}
}).release,
.configure = (struct {
pub fn configure(ptr: *anyopaque, format: TextureFormat, allowed_usage: Texture.Usage, width: u32, height: u32) void {
pub fn configure(ptr: *anyopaque, format: Texture.Format, allowed_usage: Texture.Usage, width: u32, height: u32) void {
c.wgpuSwapChainConfigure(
@ptrCast(c.WGPUSwapChain, ptr),
@enumToInt(format),