Lines Matching defs:device

51 								HostPtr		(const DeviceInterface& vkd, VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags);
63 HostPtr::HostPtr (const DeviceInterface& vkd, VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags)
65 , m_device (device)
67 , m_ptr (mapMemory(vkd, device, memory, offset, size, flags))
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);
190 SimpleAllocator::SimpleAllocator (const DeviceInterface& vk, VkDevice device, const VkPhysicalDeviceMemoryProperties& deviceMemProps, const OptionalOffsetParams& offsetParams)
192 , m_device (device)
273 const VkDevice device,
287 Move<VkDeviceMemory> mem = allocateMemory(vkd, device, &allocInfo);
293 hostPtr = MovePtr<HostPtr>(new HostPtr(vkd, device, *mem, 0u, allocInfo.allocationSize, 0u));
302 const VkDevice device,
306 const VkMemoryRequirements memoryRequirements = getBufferMemoryRequirements(vkd, device, buffer);
315 return allocateExtended(vki, vkd, physDevice, device, memoryRequirements, requirement, &dedicatedAllocationInfo);
321 const VkDevice device,
325 const VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vkd, device, image);
334 return allocateExtended(vki, vkd, physDevice, device, memoryRequirements, requirement, &dedicatedAllocationInfo);
337 void* mapMemory (const DeviceInterface& vkd, VkDevice device, VkDeviceMemory mem, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags)
340 VK_CHECK(vkd.mapMemory(device, mem, offset, size, flags, &hostPtr));
345 void flushMappedMemoryRange (const DeviceInterface& vkd, VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size)
356 VK_CHECK(vkd.flushMappedMemoryRanges(device, 1u, &range));
359 void invalidateMappedMemoryRange (const DeviceInterface& vkd, VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size)
370 VK_CHECK(vkd.invalidateMappedMemoryRanges(device, 1u, &range));
421 const VkDevice device,
436 const VkMemoryRequirements reqs = getImagePlaneMemoryRequirements(vkd, device, image, planeAspect);
459 VK_CHECK(vkd.bindImageMemory2(device, numPlanes, coreInfos.data()));
463 const VkDevice device,
468 MovePtr<Allocation> alloc = allocator.allocate(getImageMemoryRequirements(vk, device, image), requirement);
469 VK_CHECK(vk.bindImageMemory(device, image, alloc->getMemory(), alloc->getOffset()));
474 const VkDevice device,
479 MovePtr<Allocation> alloc(allocator.allocate(getBufferMemoryRequirements(vk, device, buffer), requirement));
480 VK_CHECK(vk.bindBufferMemory(device, buffer, alloc->getMemory(), alloc->getOffset()));
485 const VkDevice device,
490 flushAlloc(vk, device, alloc);