mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-21 13:54:18 +01:00
[dxvk] Avoid buffer slice copy when tracking buffer views
This commit is contained in:
parent
6c889c0005
commit
3a1fbdaaf1
@ -357,7 +357,7 @@ namespace dxvk {
|
||||
* \returns Backing buffer resource
|
||||
*/
|
||||
Rc<DxvkResource> bufferResource() const {
|
||||
return m_physView->slice().resource();
|
||||
return m_physView->bufferResource();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -252,6 +252,14 @@ namespace dxvk {
|
||||
return m_slice;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Physical buffer resource
|
||||
* \returns Resource pointer
|
||||
*/
|
||||
Rc<DxvkResource> bufferResource() const {
|
||||
return m_slice.resource();
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Rc<vk::DeviceFn> m_vkd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user