gpu: convert RenderBundle from enum(usize) to *opaque

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 14:55:24 -07:00 committed by Stephen Gutekanst
parent 4ff2e96efd
commit 7acc5798d9

View file

@ -1,13 +1,8 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
pub const RenderBundle = enum(usize) {
_,
pub const RenderBundle = *opaque {};
// 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,
};
pub const RenderBundleDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
};