From 7a8f1b0cf945db413d81aeab44875660cca7e455 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 16 Jul 2022 20:43:58 -0700 Subject: [PATCH] gpu: add ComputePassDescriptor Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 7 ------- gpu/src/main.zig | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index deb829c7..8a123371 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,10 +1,3 @@ -pub const WGPUComputePassDescriptor = extern struct { - next_in_chain: *const ChainedStruct, - label: ?[*:0]const u8 = null, - timestamp_write_count: u32, - timestamp_writes: [*]const ComputePassTimestampWrite, -}; - pub const DepthStencilState = extern struct { next_in_chain: *const ChainedStruct, format: TextureFormat, diff --git a/gpu/src/main.zig b/gpu/src/main.zig index 908aa498..d7361021 100644 --- a/gpu/src/main.zig +++ b/gpu/src/main.zig @@ -78,6 +78,13 @@ pub const RequestAdapterOptions = extern struct { force_fallback_adapter: bool, }; +pub const ComputePassDescriptor = extern struct { + next_in_chain: *const ChainedStruct, + label: ?[*:0]const u8 = null, + timestamp_write_count: u32, + timestamp_writes: [*]const ComputePassTimestampWrite, +}; + test { refAllDecls(@import("adapter.zig")); refAllDecls(@import("bind_group.zig"));