tp::Version struct

Represents and stores a version number.

Public static functions

static auto getMaxUsedVulkanAPIVersion() -> Version constexpr
Returns the highest Vulkan API version that Tephra will make use of.
static auto getMinSupportedVulkanDeviceVersion() -> Version constexpr
Returns the lowest version of the Vulkan device-level API that Tephra supports.
static auto getMinSupportedVulkanInstanceVersion() -> Version constexpr
Returns the lowest version of the Vulkan instance-level API that Tephra supports.

Constructors, destructors, conversion operators

Version(uint32_t major, uint32_t minor, uint32_t patch) constexpr
Version(uint32_t packedVersion) explicit constexpr
Constructs a new tp::Version object out of a packed version number used by Vulkan.

Public functions

auto pack() const -> uint32_t constexpr
Packs the version number into a format used by Vulkan.
auto toString() const -> std::string
Returns a formatted string for the version number.

Public variables

uint32_t major
The major version number.
uint32_t minor
The minor version number.
uint32_t patch
The patch version number.

Function documentation

tp::Version::Version(uint32_t major, uint32_t minor, uint32_t patch) constexpr

Parameters
major The major version number.
minor The minor version number.
patch The patch version number.