|
VKVG
Vulkan Vector Graphics
|
This is the reference documentation for creating, using and destroying VKVG Surfaces used as backend for drawing operations.
Typedefs | |
| typedef struct _vkvg_surface_t * | VkvgSurface |
| Opaque pointer on a Vkvg Surface structure. More... | |
Functions | |
| VkvgSurface | vkvg_surface_create (VkvgDevice dev, uint32_t width, uint32_t height) |
| Create a new vkvg surface. More... | |
| VkvgSurface | vkvg_surface_create_from_image (VkvgDevice dev, const char *filePath) |
| Create a new vkvg surface by loading an image file. The resulting surface will have the same dimension as the supplied image. More... | |
| VkvgSurface | vkvg_surface_create_for_VkhImage (VkvgDevice dev, void *vkhImg) |
| Create a new vkvg surface using an existing vulkan texture as backend. More... | |
| VkvgSurface | vkvg_surface_reference (VkvgSurface surf) |
| Increment reference count on the surface by one. More... | |
| uint32_t | vkvg_surface_get_reference_count (VkvgSurface surf) |
| Get the current reference count on this surface. More... | |
| void | vkvg_surface_destroy (VkvgSurface surf) |
| Decrement the reference count on the surface by one. Destroy it if count reach 0. More... | |
| vkvg_status_t | vkvg_surface_status (VkvgSurface surf) |
| Query the current status of the surface. More... | |
| void | vkvg_surface_clear (VkvgSurface surf) |
| Clear surface's content. More... | |
| VkImage | vkvg_surface_get_vk_image (VkvgSurface surf) |
| Get the final single sampled vulkan image of this surface. More... | |
| VkFormat | vkvg_surface_get_vk_format (VkvgSurface surf) |
| Get the vulkan format of the vulkan texture used as backend for this surface. More... | |
| uint32_t | vkvg_surface_get_width (VkvgSurface surf) |
| Get the actual surface width. More... | |
| uint32_t | vkvg_surface_get_height (VkvgSurface surf) |
| Get the actual surface height. More... | |
| vkvg_status_t | vkvg_surface_write_to_png (VkvgSurface surf, const char *path) |
| Write surface content to a png file on disk. More... | |
| vkvg_status_t | vkvg_surface_write_to_memory (VkvgSurface surf, unsigned char *const bitmap) |
| Save surface to memory. More... | |
| void | vkvg_surface_resolve (VkvgSurface surf) |
| Explicitly resolve a multisampled surface. More... | |