gpu: workaround stage2 usingnamespace bug
See ziglang/zig#12429 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9a79da0f69
commit
27df1e7ca8
4 changed files with 14 additions and 17 deletions
|
|
@ -1,8 +1,7 @@
|
|||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
const Texture = @import("texture.zig").Texture;
|
||||
const Impl = @import("interface.zig").Impl;
|
||||
const mip_level_count_undef = @import("main.zig").mip_level_count_undef;
|
||||
const array_layer_count_undef = @import("main.zig").array_layer_count_undef;
|
||||
const types = @import("types.zig");
|
||||
|
||||
pub const TextureView = opaque {
|
||||
pub const Dimension = enum(u32) {
|
||||
|
|
@ -21,9 +20,9 @@ pub const TextureView = opaque {
|
|||
format: Texture.Format = .undef,
|
||||
dimension: Dimension = .dimension_undef,
|
||||
base_mip_level: u32 = 0,
|
||||
mip_level_count: u32 = mip_level_count_undef,
|
||||
mip_level_count: u32 = types.mip_level_count_undef,
|
||||
base_array_layer: u32 = 0,
|
||||
array_layer_count: u32 = array_layer_count_undef,
|
||||
array_layer_count: u32 = types.array_layer_count_undef,
|
||||
aspect: Texture.Aspect = .all,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue