From cb68331f6cf49c4a78788aacfb0027ec3852a5b4 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 16 Jul 2022 20:49:18 -0700 Subject: [PATCH] gpu: add RequiredLimits 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 c43788f0..70e0c697 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,8 +1,3 @@ -pub const RequiredLimits = extern struct { - next_in_chain: *const ChainedStruct, - limits: Limits, -}; - pub const SupportedLimits = extern struct { next_in_chain: *CHainedStructOut, limits: Limits, diff --git a/gpu/src/types.zig b/gpu/src/types.zig index 6d000604..166f7897 100644 --- a/gpu/src/types.zig +++ b/gpu/src/types.zig @@ -567,6 +567,11 @@ pub const RenderPassColorAttachment = extern struct { clear_value: Color, }; +pub const RequiredLimits = extern struct { + next_in_chain: *const ChainedStruct, + limits: Limits, +}; + test "BackendType name" { try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name()); }