From 8163a5876c5aad01f14b51558570bf704d374042 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 16 Jul 2022 19:54:54 -0700 Subject: [PATCH] gpu: add Queue.Descriptor Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 5 ----- gpu/src/queue.zig | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 9807d32a..f879bdb3 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,8 +1,3 @@ -pub const WGPUQueueDescriptor = extern struct { - next_in_chain: *const ChainedStruct, - label: ?[*:0]const u8 = null, -}; - pub const WGPURenderBundleDescriptor = extern struct { next_in_chain: *const ChainedStruct, label: ?[*:0]const u8 = null, diff --git a/gpu/src/queue.zig b/gpu/src/queue.zig index 1349b769..c754d05f 100644 --- a/gpu/src/queue.zig +++ b/gpu/src/queue.zig @@ -1,3 +1,5 @@ +const ChainedStruct = @import("types.zig").ChainedStruct; + pub const Queue = enum(usize) { _, @@ -10,4 +12,9 @@ pub const Queue = enum(usize) { unknown = 0x00000002, device_lost = 0x00000003, }; + + pub const Descriptor = extern struct { + next_in_chain: *const ChainedStruct, + label: ?[*:0]const u8 = null, + }; };