gpu: workaround stage2 usingnamespace bug

See ziglang/zig#12429

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-12 10:47:59 -07:00
parent 9a79da0f69
commit 27df1e7ca8
4 changed files with 14 additions and 17 deletions

View file

@ -3,7 +3,7 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
const TextureView = @import("texture_view.zig").TextureView;
const Extent3D = @import("types.zig").Extent3D;
const Impl = @import("interface.zig").Impl;
const copy_stride_undef = @import("main.zig").copy_stride_undef;
const types = @import("types.zig");
pub const Texture = opaque {
pub const Aspect = enum(u32) {
@ -169,8 +169,8 @@ pub const Texture = opaque {
pub const DataLayout = extern struct {
next_in_chain: ?*const ChainedStruct = null,
offset: u64 = 0,
bytes_per_row: u32 = copy_stride_undef,
rows_per_image: u32 = copy_stride_undef,
bytes_per_row: u32 = types.copy_stride_undef,
rows_per_image: u32 = types.copy_stride_undef,
};
pub const Descriptor = extern struct {