MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / GetResourceAllocInfo

Method GetResourceAllocInfo

tests/framework/binding.cpp:903–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

901void DeviceMemory::Unmap() const { vk::UnmapMemory(device(), handle()); }
902
903VkMemoryAllocateInfo DeviceMemory::GetResourceAllocInfo(const Device& dev, const VkMemoryRequirements& reqs,
904 VkMemoryPropertyFlags mem_props, void* alloc_info_pnext) {
905 VkMemoryAllocateInfo alloc_info = vku::InitStructHelper(alloc_info_pnext);
906 alloc_info.allocationSize = reqs.size;
907 EXPECT_TRUE(dev.Physical().SetMemoryType(reqs.memoryTypeBits, &alloc_info, mem_props));
908 return alloc_info;
909}
910
911NON_DISPATCHABLE_HANDLE_DTOR(Fence, vk::DestroyFence)
912

Callers

nothing calls this directly

Calls 1

SetMemoryTypeMethod · 0.80

Tested by

no test coverage detected