From 727a3296322b4e36844af949f743a581a427b1af Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 11 Mar 2022 14:20:10 -0700 Subject: [PATCH] gpu: add CommandEncoder.Descriptor Signed-off-by: Stephen Gutekanst --- gpu/src/CommandEncoder.zig | 5 +++++ gpu/src/TODO | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gpu/src/CommandEncoder.zig b/gpu/src/CommandEncoder.zig index d782b5db..3ee71d00 100644 --- a/gpu/src/CommandEncoder.zig +++ b/gpu/src/CommandEncoder.zig @@ -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; } diff --git a/gpu/src/TODO b/gpu/src/TODO index cfdd6480..822e4158 100644 --- a/gpu/src/TODO +++ b/gpu/src/TODO @@ -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;