diff --git a/src/dxvk/hud/dxvk_hud.h b/src/dxvk/hud/dxvk_hud.h index 6e57046a4..58c383f07 100644 --- a/src/dxvk/hud/dxvk_hud.h +++ b/src/dxvk/hud/dxvk_hud.h @@ -20,7 +20,7 @@ namespace dxvk::hud { Hud(const Rc& device); ~Hud(); - + /** * \brief Update HUD * @@ -40,6 +40,14 @@ namespace dxvk::hud { const DxvkContextObjects& ctx, const Rc& dstView); + /** + * \brief Checks whether the HUD is empty + * \returns \c true if the HUD is empty + */ + bool empty() const { + return m_hudItems.empty(); + } + /** * \brief Adds a HUD item if enabled * diff --git a/src/dxvk/hud/dxvk_hud_item.h b/src/dxvk/hud/dxvk_hud_item.h index de5eb1917..ad905fa8a 100644 --- a/src/dxvk/hud/dxvk_hud_item.h +++ b/src/dxvk/hud/dxvk_hud_item.h @@ -82,6 +82,14 @@ namespace dxvk::hud { const HudOptions& options, HudRenderer& renderer); + /** + * \brief Checks whether the item set is empty + * \returns \c true if there are no items + */ + bool empty() const { + return m_items.empty(); + } + /** * \brief Creates a HUD item if enabled *