gpu: add CommandEncoder.Descriptor

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

View file

@ -40,8 +40,13 @@ pub inline fn setLabel(enc: CommandEncoder, label: [:0]const u8) void {
enc.vtable.setLabel(enc.ptr, label);
}
pub const Descriptor = struct {
label: ?[*:0]const u8 = null,
};
test "syntax" {
_ = VTable;
_ = reference;
_ = release;
_ = Descriptor;
}

View file

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