From c29314de5aa008a8e5f6795b347a1f41c1d1ff3b Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 17 Jul 2019 11:33:39 +0200 Subject: [PATCH] [dxvk] Change DxvkImageView::formatInfo to return view format info Makes more sense and won't break any existing code using it. --- src/dxvk/dxvk_image.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/dxvk/dxvk_image.h b/src/dxvk/dxvk_image.h index 1035a23d2..31b3f8ab4 100644 --- a/src/dxvk/dxvk_image.h +++ b/src/dxvk/dxvk_image.h @@ -347,14 +347,6 @@ namespace dxvk { return m_image->info(); } - /** - * \brief Image format info - * \returns Image format info - */ - const DxvkFormatInfo* formatInfo() const { - return m_image->formatInfo(); - } - /** * \brief Image object * \returns Image object @@ -363,6 +355,14 @@ namespace dxvk { return m_image; } + /** + * \brief View format info + * \returns View format info + */ + const DxvkFormatInfo* formatInfo() const { + return imageFormatInfo(m_info.format); + } + /** * \brief Mip level size *