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()); }