1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxvk] Add method to retrieve buffer view format info

This commit is contained in:
Philip Rebohle 2019-07-17 11:45:03 +02:00
parent c29314de5a
commit c6ea115ca3
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -564,6 +564,14 @@ namespace dxvk {
const DxvkBufferCreateInfo& bufferInfo() const {
return m_buffer->info();
}
/**
* \brief View format info
* \returns View format info
*/
const DxvkFormatInfo* formatInfo() const {
return imageFormatInfo(m_info.format);
}
/**
* \brief Retrieves buffer slice handle