VKVG  
Vulkan Vector Graphics

◆ vkvg_pattern_create_for_surface()

VkvgPattern vkvg_pattern_create_for_surface ( VkvgSurface  surf)

Create a new pattern from the supplied #surface. The advantage of having a VkvgPattern to paint an image resides in the hability to set filtering options as well as repeat behaviour on borders. Reference count of the supplied surface will be incremented so that it will not be destroyed before this pattern release it.

Parameters
surfa valid VkvgSurface to use for pattern
Returns
VkvgPattern a newly created pattern