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"));