mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -251,6 +251,14 @@ namespace dxvk {
|
|||||||
DxvkPhysicalBufferSlice slice() const {
|
DxvkPhysicalBufferSlice slice() const {
|
||||||
return m_slice;
|
return m_slice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Physical buffer resource
|
||||||
|
* \returns Resource pointer
|
||||||
|
*/
|
||||||
|
Rc<DxvkResource> bufferResource() const {
|
||||||
|
return m_slice.resource();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user