1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +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

@ -19,6 +19,11 @@ namespace dxvk {
m_physSlice = this->allocPhysicalBuffer(1)
->slice(0, m_physSliceStride);
}
DxvkBuffer::~DxvkBuffer() {
}
DxvkPhysicalBufferSlice DxvkBuffer::allocPhysicalSlice() {

View File

@ -23,6 +23,8 @@ namespace dxvk {
const DxvkBufferCreateInfo& createInfo,
VkMemoryPropertyFlags memoryType);
~DxvkBuffer();
/**
* \brief Buffer properties
* \returns Buffer properties
@ -210,7 +212,7 @@ namespace dxvk {
explicit DxvkBufferSlice(const Rc<DxvkBuffer>& buffer)
: DxvkBufferSlice(buffer, 0, buffer->info().size) { }
size_t offset() const { return m_offset; }
size_t length() const { return m_length; }