1
0
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:
Philip Rebohle 2018-09-17 23:42:34 +02:00
parent 3a1fbdaaf1
commit 12efd88726
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ namespace dxvk {
* \brief Underlying buffer * \brief Underlying buffer
* \returns The virtual buffer * \returns The virtual buffer
*/ */
Rc<DxvkBuffer> buffer() const { const Rc<DxvkBuffer>& buffer() const {
return m_buffer; return m_buffer;
} }
@ -332,7 +332,7 @@ namespace dxvk {
* \brief Underlying buffer object * \brief Underlying buffer object
* \returns Underlying buffer object * \returns Underlying buffer object
*/ */
Rc<DxvkBuffer> buffer() const { const Rc<DxvkBuffer>& buffer() const {
return m_buffer; return m_buffer;
} }

View File

@ -339,7 +339,7 @@ namespace dxvk {
* \brief Image object * \brief Image object
* \returns Image object * \returns Image object
*/ */
Rc<DxvkImage> image() const { const Rc<DxvkImage>& image() const {
return m_image; return m_image;
} }