gpu: convert Texture from enum(usize) to *opaque

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 15:05:16 -07:00 committed by Stephen Gutekanst
parent 7f952545b9
commit c0ad349a12
7 changed files with 202 additions and 197 deletions

View file

@ -1,5 +1,6 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
const Texture = @import("texture.zig").Texture;
const TextureFormat = @import("texture.zig").TextureFormat;
pub const RenderBundleEncoder = *opaque {};
@ -7,8 +8,8 @@ pub const RenderBundleEncoderDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
color_formats_count: u32,
color_formats: [*]const Texture.Format,
depth_stencil_format: Texture.Format,
color_formats: [*]const TextureFormat,
depth_stencil_format: TextureFormat,
sample_count: u32,
depth_read_only: bool,
stencil_read_only: bool,