From 2b8e0bb43aae03ee32fc3e02cbe3967ea6cc18b6 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 11 Mar 2022 14:19:36 -0700 Subject: [PATCH] gpu: add CommandBuffer.Descriptor Signed-off-by: Stephen Gutekanst --- gpu/src/CommandBuffer.zig | 5 +++++ gpu/src/TODO | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gpu/src/CommandBuffer.zig b/gpu/src/CommandBuffer.zig index b3b39b87..9a665d1e 100644 --- a/gpu/src/CommandBuffer.zig +++ b/gpu/src/CommandBuffer.zig @@ -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; } diff --git a/gpu/src/TODO b/gpu/src/TODO index 2fe8e5b6..cfdd6480 100644 --- a/gpu/src/TODO +++ b/gpu/src/TODO @@ -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;