|
VKVG
Vulkan Vector Graphics
|
◆ vkvg_device_destroy()
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:
Create a new multisampled vkvg device. This function allows to create vkvg device for working with multisampled surfaces. Multisampling is used to smooth color transitions in drawings, making lines not pixelised and diagonal edges not stepped. Multisampling has a performance cost. The final image of the surface, accessible by the user will be a resolved single sampled image.
Decrement the reference count of the device by 1. Release all its resources if count reaches 0. If device is referenced by several active surfaces, calling destroy will only decrement the reference count by 1. When the reference count reaches 0, the vkvg device is effectively destroyed, the device pointer is freed, and vulkan objects are released. Vkvg Devices has to stay active as long as surfaces created by it are used.
|