|
◆ 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
-
inst | Vulkan instance to create the device from. |
phy | Vulkan physical device used to create the vkvg device. |
vkdev | Vulkan logical device to create the vkvg device for. |
qFamIdx | Queue family Index of the graphic queue used for drawing operations. |
qIndex | Index of the queue into the choosen familly, 0 in general. |
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 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.
|