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