From: Jean-Philippe Bruyère Date: Mon, 2 Apr 2018 05:12:36 +0000 (+0200) Subject: use unsigned int in both width and height for surface creation X-Git-Tag: v0.1-alpha~161 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=2a442c7677ba0c2ed6743fb3ac1aeecc0cced8bf;p=jp%2Fvkvg.git use unsigned int in both width and height for surface creation --- diff --git a/.gitignore b/.gitignore index f0bb5fa..d76a516 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ build/ *.user +src/shaders.h +ignore diff --git a/include/vkvg.h b/include/vkvg.h index 89e64a9..da2a016 100644 --- a/include/vkvg.h +++ b/include/vkvg.h @@ -20,7 +20,7 @@ VkvgDevice vkvg_device_create (VkDevice vkdev, VkQueue queue, uint32_t qFam, VkPhysicalDeviceMemoryProperties memprops); void vkvg_device_destroy (VkvgDevice dev); -VkvgSurface vkvg_surface_create (VkvgDevice dev, int32_t width, uint32_t height); +VkvgSurface vkvg_surface_create (VkvgDevice dev, uint32_t width, uint32_t height); void vkvg_surface_destroy (VkvgSurface surf); VkImage vkvg_surface_get_vk_image (VkvgSurface surf); VkImage vkvg_surface_get_vkh_image (VkvgSurface surf); diff --git a/src/vkvg_surface.c b/src/vkvg_surface.c index da5afbe..46f3f3f 100644 --- a/src/vkvg_surface.c +++ b/src/vkvg_surface.c @@ -27,7 +27,7 @@ void _clear_stencil (VkvgSurface surf) vkh_cmd_submit (dev->queue, &cmd, dev->fence); } -VkvgSurface vkvg_surface_create(VkvgDevice dev, int32_t width, uint32_t height){ +VkvgSurface vkvg_surface_create(VkvgDevice dev, uint32_t width, uint32_t height){ VkvgSurface surf = (vkvg_surface*)calloc(1,sizeof(vkvg_surface)); surf->dev = dev;