gpu: convert Texture from enum(usize) to *opaque
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7f952545b9
commit
c0ad349a12
7 changed files with 202 additions and 197 deletions
|
|
@ -1,14 +1,16 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
const PresentMode = @import("types.zig").PresentMode;
|
||||
const Texture = @import("texture.zig").Texture;
|
||||
const TextureUsageFlags = @import("texture.zig").TextureUsageFlags;
|
||||
const TextureFormat = @import("texture.zig").TextureFormat;
|
||||
|
||||
pub const SwapChain = *opaque {};
|
||||
|
||||
pub const SwapChainDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
label: ?[*:0]const u8 = null,
|
||||
usage: Texture.UsageFlags,
|
||||
format: Texture.Format,
|
||||
usage: TextureUsageFlags,
|
||||
format: TextureFormat,
|
||||
width: u32,
|
||||
height: u32,
|
||||
present_mode: PresentMode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue