From 7f8dedcbd5c74eb1b26cac9ac500e205f6d78299 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 16 Jul 2022 20:49:45 -0700 Subject: [PATCH] gpu: add SupportedLimits Signed-off-by: Stephen Gutekanst --- gpu/TODO-webgpu.h | 5 ----- gpu/src/types.zig | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 70e0c697..f58509e1 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,8 +1,3 @@ -pub const SupportedLimits = extern struct { - next_in_chain: *CHainedStructOut, - limits: Limits, -}; - pub const WGPUTextureDescriptor = 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 166f7897..ce2fb6ae 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -572,6 +572,11 @@ pub const RequiredLimits = extern struct { limits: Limits, }; +pub const SupportedLimits = extern struct { + next_in_chain: *ChainedStructOut, + limits: Limits, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }