1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 10:24:12 +01:00

[dxvk] Make DxvkBuffer destructor explicit

Prevents compiler from inlining massive amounts of code where it's
not needed. This is more consistent with the other classes as well.
This commit is contained in:
Philip Rebohle 2018-09-29 20:19:07 +02:00
parent da8274daaf
commit 387f41ede5
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,11 @@ namespace dxvk {
} }
DxvkBuffer::~DxvkBuffer() {
}
DxvkPhysicalBufferSlice DxvkBuffer::allocPhysicalSlice() { DxvkPhysicalBufferSlice DxvkBuffer::allocPhysicalSlice() {
std::unique_lock<sync::Spinlock> freeLock(m_freeMutex); std::unique_lock<sync::Spinlock> freeLock(m_freeMutex);

View File

@ -23,6 +23,8 @@ namespace dxvk {
const DxvkBufferCreateInfo& createInfo, const DxvkBufferCreateInfo& createInfo,
VkMemoryPropertyFlags memoryType); VkMemoryPropertyFlags memoryType);
~DxvkBuffer();
/** /**
* \brief Buffer properties * \brief Buffer properties
* \returns Buffer properties * \returns Buffer properties