VKVG  
Vulkan Vector Graphics

◆ vkvg_device_create_from_vk()

VkvgDevice vkvg_device_create_from_vk ( VkInstance  inst,
VkPhysicalDevice  phy,
VkDevice  vkdev,
uint32_t  qFamIdx,
uint32_t  qIndex 
)

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
insta valid Vulkan instance to create the device from.
phyVulkan physical device used to create the vkvg device.
vkdevVulkan logical device to create the vkvg device for.
qFamIdxQueue family Index of the graphic queue used for drawing operations.
qIndexIndex of the queue into the choosen familly, 0 in general.
Returns
The handle of the created vkvg device, or null if an error occured.