VKVG  
Vulkan Vector Graphics

◆ vkvg_device_create()

VkvgDevice vkvg_device_create ( VkSampleCountFlags  samples,
bool  deferredResolve 
)

Create a new VkvgDevice owning vulkan instance and device.

On success, create a new vkvg device and set its reference count to 1. On error, you may 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
samplesThe sample count that will be setup for the surfaces created by this device.
deferredResolveIf true, the final simple sampled image of the surface will only be resolved on demand with a call to vkvg_surface_resolve() or