diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index f879bdb3..a4602188 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,8 +1,3 @@ -pub const WGPURenderBundleDescriptor = extern struct { - next_in_chain: *const ChainedStruct, - label: ?[*:0]const u8 = null, -}; - pub const WGPURenderBundleEncoderDescriptor = extern struct { next_in_chain: *const ChainedStruct, label: ?[*:0]const u8 = null, diff --git a/gpu/src/render_bundle.zig b/gpu/src/render_bundle.zig index a194b954..4e66e00f 100644 --- a/gpu/src/render_bundle.zig +++ b/gpu/src/render_bundle.zig @@ -1,6 +1,13 @@ +const ChainedStruct = @import("types.zig").ChainedStruct; + pub const RenderBundle = enum(usize) { _, // TODO: verify there is a use case for nullable value of this type. pub const none: RenderBundle = @intToEnum(RenderBundle, 0); + + pub const Descriptor = extern struct { + next_in_chain: *const ChainedStruct, + label: ?[*:0]const u8 = null, + }; };