mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-22 07:54:15 +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
|
* \returns Backing buffer resource
|
||||||
*/
|
*/
|
||||||
Rc<DxvkResource> bufferResource() const {
|
Rc<DxvkResource> bufferResource() const {
|
||||||
return m_physView->slice().resource();
|
return m_physView->bufferResource();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -252,6 +252,14 @@ namespace dxvk {
|
|||||||
return m_slice;
|
return m_slice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Physical buffer resource
|
||||||
|
* \returns Resource pointer
|
||||||
|
*/
|
||||||
|
Rc<DxvkResource> bufferResource() const {
|
||||||
|
return m_slice.resource();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Rc<vk::DeviceFn> m_vkd;
|
Rc<vk::DeviceFn> m_vkd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user