Lines Matching refs:alloc
97 void flushAlloc (const DeviceInterface& vkd, VkDevice device, const Allocation& alloc)
99 flushMappedMemoryRange(vkd, device, alloc.getMemory(), alloc.getOffset(), VK_WHOLE_SIZE);
102 void invalidateAlloc (const DeviceInterface& vkd, VkDevice device, const Allocation& alloc)
104 invalidateMappedMemoryRange(vkd, device, alloc.getMemory(), alloc.getOffset(), VK_WHOLE_SIZE);
468 MovePtr<Allocation> alloc = allocator.allocate(getImageMemoryRequirements(vk, device, image), requirement);
469 VK_CHECK(vk.bindImageMemory(device, image, alloc->getMemory(), alloc->getOffset()));
470 return alloc;
479 MovePtr<Allocation> alloc(allocator.allocate(getBufferMemoryRequirements(vk, device, buffer), requirement));
480 VK_CHECK(vk.bindBufferMemory(device, buffer, alloc->getMemory(), alloc->getOffset()));
481 return alloc;
486 const Allocation& alloc,
489 deMemset(alloc.getHostPtr(), 0, static_cast<std::size_t>(size));
490 flushAlloc(vk, device, alloc);