gpu: add CommandBuffer.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-15 01:06:19 -07:00 committed by Stephen Gutekanst
parent cfeea2b415
commit 97724b8779
2 changed files with 7 additions and 5 deletions

View file

@ -1,8 +1,3 @@
typedef struct WGPUCommandBufferDescriptor {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
} WGPUCommandBufferDescriptor;
typedef struct WGPUCommandEncoderDescriptor {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,

View file

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