gpu: move TextureUsage -> Texture.Usage
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
58c27b41a8
commit
281d6a2016
5 changed files with 15 additions and 17 deletions
|
|
@ -37,7 +37,6 @@ const CommandEncoder = @import("CommandEncoder.zig");
|
|||
const ComputePassEncoder = @import("ComputePassEncoder.zig");
|
||||
const ComputePipeline = @import("ComputePipeline.zig");
|
||||
|
||||
const TextureUsage = @import("enums.zig").TextureUsage;
|
||||
const TextureFormat = @import("enums.zig").TextureFormat;
|
||||
const PresentMode = @import("enums.zig").PresentMode;
|
||||
|
||||
|
|
@ -511,7 +510,7 @@ const swap_chain_vtable = SwapChain.VTable{
|
|||
}
|
||||
}).release,
|
||||
.configure = (struct {
|
||||
pub fn configure(ptr: *anyopaque, format: TextureFormat, allowed_usage: TextureUsage, width: u32, height: u32) void {
|
||||
pub fn configure(ptr: *anyopaque, format: TextureFormat, allowed_usage: Texture.Usage, width: u32, height: u32) void {
|
||||
c.wgpuSwapChainConfigure(
|
||||
@ptrCast(c.WGPUSwapChain, ptr),
|
||||
@enumToInt(format),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue