From e20d7f3b3891125aa5f55b57e2a21ab70ae0a8ad Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 11 Mar 2022 14:20:53 -0700 Subject: [PATCH] gpu: add RenderBundle.Descriptor Signed-off-by: Stephen Gutekanst --- gpu/src/RenderBundle.zig | 5 +++++ gpu/src/TODO | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gpu/src/RenderBundle.zig b/gpu/src/RenderBundle.zig index 01b3ff1a..3ba8e288 100644 --- a/gpu/src/RenderBundle.zig +++ b/gpu/src/RenderBundle.zig @@ -22,8 +22,13 @@ pub inline fn setLabel(bundle: RenderBundle, label: [:0]const u8) void { bundle.vtable.setLabel(bundle.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 822e4158..7c9eee16 100644 --- a/gpu/src/TODO +++ b/gpu/src/TODO @@ -75,11 +75,6 @@ typedef struct WGPUQuerySetDescriptor { uint32_t pipelineStatisticsCount; } WGPUQuerySetDescriptor; -typedef struct WGPURenderBundleDescriptor { - WGPUChainedStruct const * nextInChain; - char const * label; -} WGPURenderBundleDescriptor; - typedef struct WGPURenderBundleEncoderDescriptor { WGPUChainedStruct const * nextInChain; char const * label;