vulkan_test2
diff src/main.c @ 15:196122a2b8c2
...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 26 Jun 2018 08:39:30 +0300 |
parents | d34f84bede17 |
children | f8bd29f124a8 |
line diff
1.1 --- a/src/main.c Tue Jun 26 07:20:03 2018 +0300 1.2 +++ b/src/main.c Tue Jun 26 08:39:30 2018 +0300 1.3 @@ -55,6 +55,16 @@ 1.4 vkgl_clear_color(1, 0, 0, 1); 1.5 vkgl_clear(VKGL_COLOR_BUFFER_BIT); 1.6 1.7 + vku_begin_cmdbuf(vkcmdbuf, VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT); 1.8 + vku_begin_renderpass(vkcmdbuf, vkrpass, swapchain_framebuf[next_swapchain_image], 1.9 + VK_SUBPASS_CONTENTS_INLINE); 1.10 + vkCmdBindPipeline(vkcmdbuf, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline.pipeline); 1.11 + vkCmdDraw(vkcmdbuf, 3, 1, 0, 0); 1.12 + vku_end_renderpass(vkcmdbuf); 1.13 + vku_end_cmdbuf(vkcmdbuf); 1.14 + 1.15 + vku_submit_cmdbuf(vkq, vkcmdbuf, 0); 1.16 + 1.17 wsys_swap_buffers(); 1.18 } 1.19