VKVG  
Vulkan Vector Graphics

◆ vkvg_device_create_from_vk_multisample()

VkvgDevice vkvg_device_create_from_vk_multisample ( VkInstance  inst,
VkPhysicalDevice  phy,
VkDevice  vkdev,
uint32_t  qFamIdx,
uint32_t  qIndex,
VkSampleCountFlags  samples,
bool  deferredResolve 
)

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.

Parameters
instVulkan instance to create the device from.
phyVulkan physical device used to create the vkvg device.
vkdevVulkan logical device to create the vkvg device for.
qFamIdxQueue family Index of the graphic queue used for drawing operations.
qIndexIndex of the queue into the choosen familly, 0 in general.
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 when calling vkvg_surface_get_vk_image or by explicitly calling vkvg_multisample_surface_resolve. If false, multisampled image is resolved on each draw operation.
Returns
The handle of the created vkvg device, or null if an error occured.