gpu: fix confusing terminology conflict between WebGPU vs. Zig "undefined"
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
fa96792168
commit
75a09c7828
5 changed files with 49 additions and 42 deletions
|
|
@ -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_undefined = @import("main.zig").copy_stride_undefined;
|
||||
const copy_stride_undef = @import("main.zig").copy_stride_undef;
|
||||
|
||||
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_undefined,
|
||||
rows_per_image: u32 = copy_stride_undefined,
|
||||
bytes_per_row: u32 = copy_stride_undef,
|
||||
rows_per_image: u32 = copy_stride_undef,
|
||||
};
|
||||
|
||||
pub const Descriptor = extern struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue