mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-25 13:30:05 +00:00
Fix return type of GetAllocationNextPtr
Returning `void* const` doesn't mean anything (produces a warning with -Wignored-qualifiers). Based on usage, it looks like the returned pointer is expected to point at const data, so I've fixed the declaration to reflect that.
This commit is contained in:
parent
a88bc520a0
commit
8a7f80743a
@ -10928,7 +10928,7 @@ public:
|
|||||||
uint32_t GetAlgorithm() const { return m_Algorithm; }
|
uint32_t GetAlgorithm() const { return m_Algorithm; }
|
||||||
bool HasExplicitBlockSize() const { return m_ExplicitBlockSize; }
|
bool HasExplicitBlockSize() const { return m_ExplicitBlockSize; }
|
||||||
float GetPriority() const { return m_Priority; }
|
float GetPriority() const { return m_Priority; }
|
||||||
void* const GetAllocationNextPtr() const { return m_pMemoryAllocateNext; }
|
const void* GetAllocationNextPtr() const { return m_pMemoryAllocateNext; }
|
||||||
// To be used only while the m_Mutex is locked. Used during defragmentation.
|
// To be used only while the m_Mutex is locked. Used during defragmentation.
|
||||||
size_t GetBlockCount() const { return m_Blocks.size(); }
|
size_t GetBlockCount() const { return m_Blocks.size(); }
|
||||||
// To be used only while the m_Mutex is locked. Used during defragmentation.
|
// To be used only while the m_Mutex is locked. Used during defragmentation.
|
||||||
|
Loading…
Reference in New Issue
Block a user