diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 40a6478c..7c6c90f2 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,17 +1,3 @@ -pub const WGPURenderPassDepthStencilAttachment = extern struct { - view: TextureView, - depth_load_op: LoadOp, - depth_store_op: StoreOp, - clear_depth: f32, - depth_clear_value: f32, - depth_read_only: bool, - stencil_load_op: LoadOp, - stencil_store_op: StoreOp, - clear_stencil: u32, - stencil_clear_value: u32, - stencil_read_only: bool, -}; - pub const WGPURenderPassDescriptorMaxDrawCount = extern struct { chain: ChainedStruct, max_draw_count: u64, diff --git a/gpu/src/main.zig b/gpu/src/main.zig index d0ecc803..773df939 100644 --- a/gpu/src/main.zig +++ b/gpu/src/main.zig @@ -40,6 +40,8 @@ pub const dawn = @import("dawn.zig"); pub const AlphaMode = @import("types.zig").AlphaMode; pub const ComputePassTimestampLocation = @import("types.zig").ComputePassTimestampLocation; pub const ChainedStruct = @import("types.zig").ChainedStruct; +pub const LoadOp = @import("types.zig").LoadOp; +pub const StoreOp = @import("types.zig").StoreOp; pub const ComputePassTimestampWrite = struct { query_set: QuerySet, @@ -47,6 +49,20 @@ pub const ComputePassTimestampWrite = struct { location: ComputePassTimestampLocation, }; +pub const RenderPassDepthStencilAttachment = extern struct { + view: TextureView, + depth_load_op: LoadOp, + depth_store_op: StoreOp, + clear_depth: f32, + depth_clear_value: f32, + depth_read_only: bool, + stencil_load_op: LoadOp, + stencil_store_op: StoreOp, + clear_stencil: u32, + stencil_clear_value: u32, + stencil_read_only: bool, +}; + test { refAllDecls(@import("adapter.zig")); refAllDecls(@import("bind_group.zig"));