From 3ab623f360d99037b7fe19623a8fd6859d4d191f Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 15 Jul 2022 20:32:08 -0700 Subject: [PATCH] gpu: add ConstantEntry 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 101166b9..e8a699e0 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,9 +1,3 @@ -typedef struct WGPUConstantEntry { - next_in_chain: *const ChainedStruct, - char const * key; - value: f64, -} WGPUConstantEntry; - typedef struct WGPUCopyTextureForBrowserOptions { next_in_chain: *const ChainedStruct, flip_y: bool, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 4aeb80d8..a7f87aa4 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -440,6 +440,12 @@ pub const CompilationMessage = extern struct { length: u64, }; +pub const ConstantEntry = extern struct { + next_in_chain: *const ChainedStruct, + key: [*:0]const u8, + value: f64, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }