VKVG  
Vulkan Vector Graphics

◆ vkvg_create()

VkvgContext vkvg_create ( VkvgSurface  surf)

Creates a new VkvgContext with all graphics state parameters set to default values and with surf as a target surface.

Remarks
This function references surf, so you can immediately call vkvg_surface_destroy() on it if you don't need to maintain a separate reference to it.
Parameters
surfThe target surface of the drawing operations.
Returns
A new VkvgContext or null if an error occured.