From 04fd1c14d32df2a82bd58bfe48833209b33b9bf9 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 16 Jul 2022 20:42:25 -0700 Subject: [PATCH] gpu: add CompilationInfo Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 6 ------ gpu/src/types.zig | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) 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()); }