Expand version api and conversions

This commit is contained in:
Georg Hagen
2025-06-06 10:56:42 +02:00
parent 735a9afbf2
commit 0b019fa31e
5 changed files with 58 additions and 1 deletions

View File

@@ -50,6 +50,8 @@ namespace OpenVulkano
[[nodiscard]] explicit operator uint32_t() const { return (Major() << 20) | ((Minor() & 0x3FF) << 10) | (Patch() & 0x3FF); }
[[nodiscard]] operator const std::string&() const { return m_versionString; }
[[nodiscard]] const std::string& String() const { return m_versionString; }
//endregion
//region Comparison operators