lib/vulkan/conversions.rb
# Takes a version string and constructs a Vulkan packed version number
# from it.
Takes a version string and constructs a Vulkan packed version number
from it.
Takes a version string and constructs a Vulkan packed version number from it .
def vk_make_version(version)
      version = Gem::Version.new(version)
      major, minor, patch = *version.segments
      (((major) << 22) | ((minor || 0) << 12) | (patch || 0))
    end
def vk_make_version ( version ) version = Gem :: Version . new ( version ) major , minor , patch = * version . segments ( ( ( major ) << 22 ) | ( ( minor || 0 ) << 12 ) | ( patch || 0 ) ) end
Takes a version string and constructs a Vulkan packed version number
from it.
Takes a version string and constructs a Vulkan packed version number from it .
version
<not_specific>