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

Method TryInit

tests/framework/binding.cpp:874–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872}
873
874VkResult 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
884const void* DeviceMemory::Map(VkFlags flags) const {
885 void* data;

Callers 2

TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 1

AllocateMemoryFunction · 0.85

Tested by

no test coverage detected