From 122713a44d483f7e2440c0a3f6df705f29778185 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 16 Jul 2022 21:05:20 -0700 Subject: [PATCH] gpu: add FragmentState Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 10 ---------- gpu/src/types.zig | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 72d7e82c..9b976b35 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,13 +1,3 @@ -pub const FragmentState = extern struct { - next_in_chain: *const ChainedStruct, - module: ShaderModule, - entry_point: [*:0]const u8, - constant_count: u32, - constants: [*]const ConstantEntry, - target_count: u32, - targets: [*]const ColorTargetState, -}; - pub const WGPURenderPipelineDescriptor = extern struct { next_in_chain: *const ChainedStruct, label: ?[*:0]const u8 = null, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 06db9058..b9450b1a 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -601,6 +601,16 @@ pub const VertexState = extern struct { buffers: [*]const VertexBufferLayout, }; +pub const FragmentState = extern struct { + next_in_chain: *const ChainedStruct, + module: ShaderModule, + entry_point: [*:0]const u8, + constant_count: u32, + constants: [*]const ConstantEntry, + target_count: u32, + targets: [*]const ColorTargetState, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }