Lines Matching refs:allocator
25 offset(0), size(0), allocator(nullptr), addr(std::move(bufData))
29 Memory::Memory(size_t capacity, std::shared_ptr<Allocator> allocator, size_t align, MemoryType type, bool allocMem)
31 size(0), allocator(std::move(allocator)), addr(nullptr)
37 if (this->allocator) {
38 addr = std::shared_ptr<uint8_t>(static_cast<uint8_t*>(this->allocator->Alloc(allocSize)),
39 [this](uint8_t* ptr) { this->allocator->Free(static_cast<void*>(ptr)); });
200 std::shared_ptr<Allocator> allocator, size_t align)
203 std::shared_ptr<Memory> memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align));
238 std::shared_ptr<Memory> Buffer::AllocMemory(std::shared_ptr<Allocator> allocator, size_t capacity, size_t align)
240 auto type = (allocator != nullptr) ? allocator->GetMemoryType() : MemoryType::VIRTUAL_ADDR;
244 memory = std::shared_ptr<Memory>(new Memory(capacity, allocator, align));
249 memory = std::shared_ptr<Memory>(new SurfaceMemory(capacity, allocator, align));
253 memory = std::shared_ptr<Memory>(new ShareMemory(capacity, allocator, align));