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:
parent
da8274daaf
commit
387f41ede5
@ -19,6 +19,11 @@ namespace dxvk {
|
|||||||
m_physSlice = this->allocPhysicalBuffer(1)
|
m_physSlice = this->allocPhysicalBuffer(1)
|
||||||
->slice(0, m_physSliceStride);
|
->slice(0, m_physSliceStride);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DxvkBuffer::~DxvkBuffer() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
DxvkPhysicalBufferSlice DxvkBuffer::allocPhysicalSlice() {
|
DxvkPhysicalBufferSlice DxvkBuffer::allocPhysicalSlice() {
|
||||||
|
@ -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
|
||||||
@ -210,7 +212,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
explicit DxvkBufferSlice(const Rc<DxvkBuffer>& buffer)
|
explicit DxvkBufferSlice(const Rc<DxvkBuffer>& buffer)
|
||||||
: DxvkBufferSlice(buffer, 0, buffer->info().size) { }
|
: DxvkBufferSlice(buffer, 0, buffer->info().size) { }
|
||||||
|
|
||||||
size_t offset() const { return m_offset; }
|
size_t offset() const { return m_offset; }
|
||||||
size_t length() const { return m_length; }
|
size_t length() const { return m_length; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user