vkvg_status_t is used to indicates errors that can occur when using vkvg. Several vkvg function directely return result, but when using a Context, the last error is stored in the context and can be accessed with vkvg_status().
As soon as a status is not success, further operations will be canceled.
Enumerator |
---|
VKVG_STATUS_SUCCESS | no error occurred.
|
VKVG_STATUS_NO_MEMORY | out of memory
|
VKVG_STATUS_INVALID_RESTORE | call to vkvg_restore without matching call to vkvg_save
|
VKVG_STATUS_NO_CURRENT_POINT | path command expecting a current point to be defined failed
|
VKVG_STATUS_INVALID_MATRIX | invalid matrix (not invertible)
|
VKVG_STATUS_INVALID_STATUS | |
VKVG_STATUS_INVALID_INDEX | |
VKVG_STATUS_NULL_POINTER | NULL pointer
|
VKVG_STATUS_WRITE_ERROR | |
VKVG_STATUS_PATTERN_TYPE_MISMATCH | |
VKVG_STATUS_PATTERN_INVALID_GRADIENT | occurs when stops count is zero
|
VKVG_STATUS_INVALID_FORMAT | |
VKVG_STATUS_FILE_NOT_FOUND | |
VKVG_STATUS_INVALID_DASH | invalid value for a dash setting
|
VKVG_STATUS_INVALID_RECT | rectangle with height or width equal to 0.
|
VKVG_STATUS_TIMEOUT | waiting for a vulkan operation to finish resulted in a fence timeout (5 seconds)
|
VKVG_STATUS_DEVICE_ERROR | vkvg device initialization error
|
VKVG_STATUS_INVALID_IMAGE | |
VKVG_STATUS_INVALID_SURFACE | |
VKVG_STATUS_INVALID_FONT | Unresolved font name
|