gpu: add CommandBuffer.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 14:19:36 -07:00 committed by Stephen Gutekanst
parent cf6ab4f3c2
commit 2b8e0bb43a
2 changed files with 5 additions and 5 deletions

View file

@ -23,9 +23,14 @@ pub inline fn setLabel(buf: CommandBuffer, label: [:0]const u8) void {
buf.vtable.setLabel(buf.ptr, label);
}
pub const Descriptor = struct {
label: ?[*:0]const u8 = null,
};
test "syntax" {
_ = VTable;
_ = reference;
_ = release;
_ = setLabel;
_ = Descriptor;
}

View file

@ -22,11 +22,6 @@ typedef struct WGPUChainedStructOut {
typedef struct WGPUCommandBufferDescriptor {
WGPUChainedStruct const * nextInChain;
char const * label;
} WGPUCommandBufferDescriptor;
typedef struct WGPUCommandEncoderDescriptor {
WGPUChainedStruct const * nextInChain;
char const * label;