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;