diff --git a/src/d3d9/d3d9_common_texture.h b/src/d3d9/d3d9_common_texture.h index 8bd2a077..4b9d6337 100644 --- a/src/d3d9/d3d9_common_texture.h +++ b/src/d3d9/d3d9_common_texture.h @@ -98,7 +98,7 @@ namespace dxvk { * \brief Vulkan Format * \returns The Vulkan format of the resource */ - const D3D9_VK_FORMAT_MAPPING GetFormatMapping() const { + const D3D9_VK_FORMAT_MAPPING& GetFormatMapping() const { return m_mapping; } @@ -123,7 +123,7 @@ namespace dxvk { * Note, this will be nullptr if the map mode is D3D9_COMMON_TEXTURE_MAP_MODE_SYSTEMMEM * \returns The DXVK image */ - Rc GetImage() const { + const Rc& GetImage() const { return m_image; } @@ -133,14 +133,14 @@ namespace dxvk { * as the main image * \returns An image with identical info, but 1 sample */ - Rc GetResolveImage() { + const Rc& GetResolveImage() { if (unlikely(m_resolveImage == nullptr)) m_resolveImage = CreateResolveImage(); return m_resolveImage; } - Rc GetBuffer(UINT Subresource) { + const Rc& GetBuffer(UINT Subresource) { return m_buffers[Subresource]; }