X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fmemoryallocator.cpp;h=82155faf41624ef03829cd994ebbbfc2eab246ab;hp=4b3595b64df8b9d6f61c9922d005a54a59b65f5e;hb=4795cdfc7936ac89da46f4d6f9de33fd481933a4;hpb=b0f143b4db544a582b6fb77236e20ed72d2284cb diff --git a/source/backends/vulkan/memoryallocator.cpp b/source/backends/vulkan/memoryallocator.cpp index 4b3595b6..82155faf 100644 --- a/source/backends/vulkan/memoryallocator.cpp +++ b/source/backends/vulkan/memoryallocator.cpp @@ -56,7 +56,7 @@ MemoryAllocator::~MemoryAllocator() vk.FreeMemory(r.memory); } -unsigned MemoryAllocator::find_memory_pool(unsigned mask, MemoryType type) +unsigned MemoryAllocator::find_memory_pool(unsigned mask, MemoryType type) const { for(unsigned i=0; i::iterator MemoryAllocator::lower_bound_by_size(vector &indices, size_t size) +vector::iterator MemoryAllocator::lower_bound_by_size(vector &indices, size_t size) const { return lower_bound(indices, size, [this](unsigned j, unsigned s){ return blocks[j].size