From b23344d6507ab6d1e9a855c63d31ba46511484eb Mon Sep 17 00:00:00 2001 From: sGo7-Dev Date: Fri, 16 Oct 2026 20:22:46 -0600 Subject: [PATCH] Added VK_MAKE_VERSION equivalent helper (MakeVersion) to VulkanHelpers.cs --- Brutal.Vulkan.Abstractions/VulkanHelpers.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Brutal.Vulkan.Abstractions/VulkanHelpers.cs b/Brutal.Vulkan.Abstractions/VulkanHelpers.cs index 0ecd4a7..9b9d587 100644 --- a/Brutal.Vulkan.Abstractions/VulkanHelpers.cs +++ b/Brutal.Vulkan.Abstractions/VulkanHelpers.cs @@ -10,6 +10,14 @@ namespace Brutal.VulkanApi.Abstractions; public static partial class VulkanHelpers { + /// + /// Returns a packed version created from major, minor and patch components + /// + public static int MakeVersion(int major, int minor, int patch) + { + return (major << 22) | (minor << 12) | patch; + } + /// /// The number of mip levels in a full chain for the given 2D dimensions: floor(log2(max(width, height))) + 1. ///