[dxvk] Avoid buffer slice copy when tracking buffer views

This commit is contained in:
Philip Rebohle 2018-09-17 23:30:36 +02:00
parent 6c889c0005
commit 3a1fbdaaf1
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 9 additions and 1 deletions

View File

@ -357,7 +357,7 @@ namespace dxvk {
* \returns Backing buffer resource
*/
Rc<DxvkResource> bufferResource() const {
return m_physView->slice().resource();
return m_physView->bufferResource();
}
/**

View File

@ -251,6 +251,14 @@ namespace dxvk {
DxvkPhysicalBufferSlice slice() const {
return m_slice;
}
/**
* \brief Physical buffer resource
* \returns Resource pointer
*/
Rc<DxvkResource> bufferResource() const {
return m_slice.resource();
}
private: