diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 4249c836..deb829c7 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,9 +1,3 @@ -pub const CompilationInfo = extern struct { - next_in_chain: *const ChainedStruct, - message_count: u32, - messages: [*]const CompilationMessage, -}; - pub const WGPUComputePassDescriptor = 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 0b740f78..1e2df7af 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -514,6 +514,12 @@ pub const BlendState = extern struct { alpha: BlendComponent, }; +pub const CompilationInfo = extern struct { + next_in_chain: *const ChainedStruct, + message_count: u32, + messages: [*]const CompilationMessage, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }