| 872 | } |
| 873 | |
| 874 | VkResult DeviceMemory::TryInit(const Device& dev, const VkMemoryAllocateInfo& info) { |
| 875 | assert(!initialized()); |
| 876 | VkDeviceMemory handle = VK_NULL_HANDLE; |
| 877 | auto result = vk::AllocateMemory(dev, &info, nullptr, &handle); |
| 878 | if (result == VK_SUCCESS) { |
| 879 | NonDispHandle::init(dev, handle); |
| 880 | } |
| 881 | return result; |
| 882 | } |
| 883 | |
| 884 | const void* DeviceMemory::Map(VkFlags flags) const { |
| 885 | void* data; |
no test coverage detected