1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Change DxvkImageView::formatInfo to return view format info

Makes more sense and won't break any existing code using it.
This commit is contained in:
Philip Rebohle 2019-07-17 11:33:39 +02:00
parent 7895272806
commit c29314de5a
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -347,14 +347,6 @@ namespace dxvk {
return m_image->info(); return m_image->info();
} }
/**
* \brief Image format info
* \returns Image format info
*/
const DxvkFormatInfo* formatInfo() const {
return m_image->formatInfo();
}
/** /**
* \brief Image object * \brief Image object
* \returns Image object * \returns Image object
@ -363,6 +355,14 @@ namespace dxvk {
return m_image; return m_image;
} }
/**
* \brief View format info
* \returns View format info
*/
const DxvkFormatInfo* formatInfo() const {
return imageFormatInfo(m_info.format);
}
/** /**
* \brief Mip level size * \brief Mip level size
* *