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

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 14:48:46 -07:00 committed by Stephen Gutekanst
parent ca21c4fa80
commit 0c1a15a804

View file

@ -1,13 +1,8 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
pub const CommandBuffer = enum(usize) {
_,
pub const CommandBuffer = *opaque {};
// TODO: verify there is a use case for nullable value of this type.
pub const none: CommandBuffer = @intToEnum(CommandBuffer, 0);
pub const Descriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
};
pub const CommandBufferDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
};