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. ///