MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / CreateDevice

Function CreateDevice

icd/generated/function_definitions.h:186–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 return GetInstanceProcAddr(nullptr, pName);
185}
186static VKAPI_ATTR VkResult VKAPI_CALL CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo,
187 const VkAllocationCallbacks* pAllocator, VkDevice* pDevice) {
188 *pDevice = (VkDevice)CreateDispObjHandle();
189 // TODO: If emulating specific device caps, will need to add intelligence here
190 return VK_SUCCESS;
191}
192static VKAPI_ATTR void VKAPI_CALL DestroyDevice(VkDevice device, const VkAllocationCallbacks* pAllocator) {
193 unique_lock_t lock(global_lock);
194 // First destroy sub-device objects

Callers

nothing calls this directly

Calls 1

CreateDispObjHandleFunction · 0.85

Tested by

no test coverage detected