Lines Matching refs:align
23 Memory::Memory(size_t capacity, std::shared_ptr<uint8_t> bufData, size_t align, MemoryType type)
24 : memoryType(type), capacity(capacity), alignment(align),
29 Memory::Memory(size_t capacity, std::shared_ptr<Allocator> allocator, size_t align, MemoryType type, bool allocMem)
30 : memoryType(type), capacity(capacity), alignment(align), offset(0),
36 size_t allocSize = align ? (capacity + align - 1) : capacity;
43 offset = static_cast<size_t>(AlignUp(reinterpret_cast<uintptr_t>(addr.get()), static_cast<uintptr_t>(align)) -
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)
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));