mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 10:54:16 +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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user