vulkan_test2

diff src/wsys_x11.c @ 13:d34f84bede17

pipeline madness
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 25 Jun 2018 08:00:57 +0300
parents 20eb42197ab8
children 9fb6c24691ea
line diff
     1.1 --- a/src/wsys_x11.c	Sat Jun 23 07:47:49 2018 +0300
     1.2 +++ b/src/wsys_x11.c	Mon Jun 25 08:00:57 2018 +0300
     1.3 @@ -228,6 +228,12 @@
     1.4  		swapchain_images = vku_get_swapchain_images(sc, 0);
     1.5  		next_swapchain_image = vku_get_next_image(swapchain);
     1.6  
     1.7 +		if(!vkrpass) {
     1.8 +			if(!(vkrpass = vku_create_renderpass(VK_FORMAT_R8G8B8_UNORM, VK_FORMAT_UNDEFINED))) {
     1.9 +				abort();
    1.10 +			}
    1.11 +		}
    1.12 +
    1.13  		if(cb.reshape) {
    1.14  			cb.reshape(win_width, win_height);
    1.15  		}