VKVG  
Vulkan Vector Graphics
Loading...
Searching...
No Matches

◆ vkvg_device_create()

VkvgDevice vkvg_device_create ( vkvg_device_create_info_t info)

Create a new VkvgDevice.

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.
  • VKVG_STATUS_NO_MEMORY: either info parameter was null or memory allocation for device structure 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