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,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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue