diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 8a123371..5b5bb7d6 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,17 +1,3 @@ -pub const DepthStencilState = extern struct { - next_in_chain: *const ChainedStruct, - format: TextureFormat, - depth_write_enabled: bool, - depth_compare: CompareFunction, - stencil_front: StencilFaceState, - stencil_back: StencilFaceState, - stencil_read_mask: u32, - stencil_write_mask: u32, - depth_bias: i32, - depth_bias_slope_scale: f32, - depth_bias_clamp: f32, -}; - pub const ImageCopyBuffer = extern struct { next_in_chain: *const ChainedStruct, layout: TextureDataLayout, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 1e2df7af..3674ce8f 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -520,6 +520,20 @@ pub const CompilationInfo = extern struct { messages: [*]const CompilationMessage, }; +pub const DepthStencilState = extern struct { + next_in_chain: *const ChainedStruct, + format: Texture.Format, + depth_write_enabled: bool, + depth_compare: CompareFunction, + stencil_front: StencilFaceState, + stencil_back: StencilFaceState, + stencil_read_mask: u32, + stencil_write_mask: u32, + depth_bias: i32, + depth_bias_slope_scale: f32, + depth_bias_clamp: f32, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }