diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index fa2c63c4..25fd2304 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -13,12 +13,6 @@ typedef struct WGPUCompilationMessage { length: u64, } WGPUCompilationMessage; -typedef struct WGPUComputePassTimestampWrite { - WGPUQuerySet querySet; - query_index: u32, - WGPUComputePassTimestampLocation location; -} WGPUComputePassTimestampWrite; - typedef struct WGPUConstantEntry { next_in_chain: *const ChainedStruct, char const * key; diff --git a/gpu/src/main.zig b/gpu/src/main.zig index e5c8f4df..8df8ee01 100644 --- a/gpu/src/main.zig +++ b/gpu/src/main.zig @@ -34,7 +34,15 @@ pub const SwapChain = @import("swap_chain.zig").SwapChain; pub const Texture = @import("texture.zig").Texture; pub const TextureView = @import("texture_view.zig").TextureView; +// TODO: export all types.zig pub const AlphaMode = @import("types.zig").AlphaMode; +pub const ComputePassTimestampLocation = @import("types.zig").ComputePassTimestampLocation; + +pub const ComputePassTimestampWrite = struct { + query_set: QuerySet, + query_index: u32, + location: ComputePassTimestampLocation, +}; test { refAllDecls(@import("adapter.zig"));