Create a new VkvgDevice connected to the vulkan context define by an instance, a physical device, a logical device, a graphical queue family index and an its index.
On success, create a new vkvg device and set its reference count to 1. On error, query the device status by calling vkvg_device_status(). Error could be one of the following:
- VKVG_STATUS_INVALID_FORMAT: the combination of image format and tiling is not supported
- VKVG_STATUS_NULL_POINTER: vulkan function pointer fetching failed.
- Parameters
-
| inst | a valid Vulkan instance to create the device from. |
| phy | Vulkan physical device used to create the vkvg device. |
| vkdev | Vulkan logical device to create the vkvg device for. |
| qFamIdx | Queue family Index of the graphic queue used for drawing operations. |
| qIndex | Index of the queue into the choosen familly, 0 in general. |
- Returns
- The handle of the created vkvg device, or null if an error occured.