mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 19:24:10 +01:00
[dxvk] Avoid more unnecessary copies of ref-counted pointers
Improves performance measurably in Shadow Warrior 2 when CPU bound.
This commit is contained in:
parent
3a1fbdaaf1
commit
12efd88726
@ -196,7 +196,7 @@ namespace dxvk {
|
||||
* \brief Underlying buffer
|
||||
* \returns The virtual buffer
|
||||
*/
|
||||
Rc<DxvkBuffer> buffer() const {
|
||||
const Rc<DxvkBuffer>& buffer() const {
|
||||
return m_buffer;
|
||||
}
|
||||
|
||||
@ -332,7 +332,7 @@ namespace dxvk {
|
||||
* \brief Underlying buffer object
|
||||
* \returns Underlying buffer object
|
||||
*/
|
||||
Rc<DxvkBuffer> buffer() const {
|
||||
const Rc<DxvkBuffer>& buffer() const {
|
||||
return m_buffer;
|
||||
}
|
||||
|
||||
|
@ -339,7 +339,7 @@ namespace dxvk {
|
||||
* \brief Image object
|
||||
* \returns Image object
|
||||
*/
|
||||
Rc<DxvkImage> image() const {
|
||||
const Rc<DxvkImage>& image() const {
|
||||
return m_image;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user