mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
Added VK_MAKE_VERSION equivalent helper (MakeVersion) to VulkanHelpers.cs
This commit is contained in:
parent
a25cdf80b2
commit
b23344d650
1 changed files with 8 additions and 0 deletions
|
|
@ -10,6 +10,14 @@ namespace Brutal.VulkanApi.Abstractions;
|
||||||
|
|
||||||
public static partial class VulkanHelpers
|
public static partial class VulkanHelpers
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a packed version created from major, minor and patch components
|
||||||
|
/// </summary>
|
||||||
|
public static int MakeVersion(int major, int minor, int patch)
|
||||||
|
{
|
||||||
|
return (major << 22) | (minor << 12) | patch;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The number of mip levels in a full chain for the given 2D dimensions: floor(log2(max(width, height))) + 1.
|
/// The number of mip levels in a full chain for the given 2D dimensions: floor(log2(max(width, height))) + 1.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue