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
-
| samples | The sample count that will be setup for the surfaces created by this device. |
| deferredResolve | If true, the final simple sampled image of the surface will only be resolved on demand with a call to vkvg_surface_resolve() or |