diff --git a/src/Magnum/Vk/Device.h b/src/Magnum/Vk/Device.h index 73fe11b29..94ecaa2a2 100644 --- a/src/Magnum/Vk/Device.h +++ b/src/Magnum/Vk/Device.h @@ -392,10 +392,20 @@ class MAGNUM_VK_EXPORT Device { /** @brief Handle flags */ HandleFlags handleFlags() const { return _flags; } - /** @brief Device version */ + /** + * @brief Version supported by the device + * + * Unless overriden using `--magnum-vulkan-version` on the + * @ref Vk-Device-command-line "command line", corresponds to + * @ref DeviceProperties::apiVersion(). + */ Version version() const { return _version; } - /** @brief Whether given version is supported on the device */ + /** + * @brief Whether given version is supported on the device + * + * Compares @p version against @ref version(). + */ bool isVersionSupported(Version version) const { return _version >= version; } diff --git a/src/Magnum/Vk/Instance.h b/src/Magnum/Vk/Instance.h index 7abf547f1..9dec22864 100644 --- a/src/Magnum/Vk/Instance.h +++ b/src/Magnum/Vk/Instance.h @@ -432,10 +432,20 @@ class MAGNUM_VK_EXPORT Instance { /** @brief Handle flags */ HandleFlags handleFlags() const { return _flags; } - /** @brief Instance version */ + /** + * @brief Version supported by the instance + * + * Unless overriden using `--magnum-vulkan-version` on the + * @ref Vk-Device-command-line "command line", corresponds to + * @ref enumerateInstanceVersion(). + */ Version version() const { return _version; } - /** @brief Whether given version is supported on the instance */ + /** + * @brief Whether given version is supported on the instance + * + * Compares @p version against @ref version(). + */ bool isVersionSupported(Version version) const { return _version >= version; } diff --git a/src/Magnum/Vk/Version.h b/src/Magnum/Vk/Version.h index 09e665823..a3a85e915 100644 --- a/src/Magnum/Vk/Version.h +++ b/src/Magnum/Vk/Version.h @@ -132,7 +132,7 @@ as @cb{.shell-session} . @ce if patch is zero. MAGNUM_VK_EXPORT Debug& operator<<(Debug& debug, Version value); /** -@brief Enumerate instance version +@brief Enumerate version supported by the instance @m_since_latest Note that the @fn_vk{EnumerateInstanceVersion} function isn't available in