vulkan_test2

diff src/vkgl.c @ 17:f8bd29f124a8

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 27 Jun 2018 01:57:55 +0300
parents 20eb42197ab8
children
line diff
     1.1 --- a/src/vkgl.c	Tue Jun 26 08:42:12 2018 +0300
     1.2 +++ b/src/vkgl.c	Wed Jun 27 01:57:55 2018 +0300
     1.3 @@ -27,7 +27,7 @@
     1.4  void vkgl_clear(unsigned int flags)
     1.5  {
     1.6  	VkImageSubresourceRange wtf;
     1.7 -	VkSubmitInfo si;
     1.8 +	//VkSubmitInfo si;
     1.9  
    1.10  	memset(&wtf, 0, sizeof wtf);
    1.11  
    1.12 @@ -43,7 +43,7 @@
    1.13  	wtf.levelCount = 1;
    1.14  	wtf.layerCount = 1;
    1.15  
    1.16 -	vku_begin_cmdbuf(vkcmdbuf, VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT);
    1.17 +	//vku_begin_cmdbuf(vkcmdbuf, VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT);
    1.18  	if(flags & VKGL_COLOR_BUFFER_BIT) {
    1.19  		vkCmdClearColorImage(vkcmdbuf, swapchain_images[next_swapchain_image],
    1.20  				VK_IMAGE_LAYOUT_GENERAL, &st.clear.color, 1, &wtf);
    1.21 @@ -52,12 +52,14 @@
    1.22  		vkCmdClearDepthStencilImage(vkcmdbuf, swapchain_images[next_swapchain_image],
    1.23  				VK_IMAGE_LAYOUT_GENERAL, &st.clear.depthStencil, 1, &wtf);
    1.24  	}
    1.25 -	vku_end_cmdbuf(vkcmdbuf);
    1.26 +	//vku_end_cmdbuf(vkcmdbuf);
    1.27  
    1.28 +	/*
    1.29  	memset(&si, 0, sizeof si);
    1.30  	si.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO;
    1.31  	si.commandBufferCount = 1;
    1.32  	si.pCommandBuffers = &vkcmdbuf;
    1.33  
    1.34  	vkQueueSubmit(vkq, 1, &si, 0);
    1.35 +	*/
    1.36  }