diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 2accbcb8..c43788f0 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,12 +1,3 @@ -pub const WGPURenderPassColorAttachment = extern struct { - view: TextureView = TextureView.none, // nullable - resolve_target: TextureView = TextureView.none, // nullable - load_op: LoadOp, - store_op: StoreOp, - clear_color: Color, - clear_value: Color, -}; - pub const RequiredLimits = extern struct { next_in_chain: *const ChainedStruct, limits: Limits, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 6cd6a909..6d000604 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -558,6 +558,15 @@ pub const ProgrammableStageDescriptor = extern struct { constants: [*]const ConstantEntry, }; +pub const RenderPassColorAttachment = extern struct { + view: TextureView = TextureView.none, // nullable + resolve_target: TextureView = TextureView.none, // nullable + load_op: LoadOp, + store_op: StoreOp, + clear_color: Color, + clear_value: Color, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }