gpu: internalize Texture types

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-30 00:10:38 -07:00 committed by Stephen Gutekanst
parent 0dae027602
commit cccfef52f9
10 changed files with 221 additions and 232 deletions

View file

@ -1,5 +1,4 @@
const Texture = @import("texture.zig").Texture;
const TextureFormat = @import("texture.zig").TextureFormat;
const Buffer = @import("buffer.zig").Buffer;
const BindGroup = @import("bind_group.zig").BindGroup;
const RenderPipeline = @import("render_pipeline.zig").RenderPipeline;
@ -14,8 +13,8 @@ pub const RenderBundleEncoder = opaque {
label: ?[*:0]const u8 = null,
color_formats_count: u32,
// TODO: file a bug on Dawn, this is not marked as nullable but in fact is.
color_formats: ?[*]const TextureFormat,
depth_stencil_format: TextureFormat = .undef,
color_formats: ?[*]const Texture.Format,
depth_stencil_format: Texture.Format = .undef,
sample_count: u32 = 1,
depth_read_only: bool = false,
stencil_read_only: bool = false,