diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-03-09 22:06:34 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-03-09 22:06:34 +0100 |
| commit | e4c24757a15a8a33019e4e2c28302b583b9366b7 (patch) | |
| tree | b5196dcd51428df4371cc612016a18127350e516 /include | |
| parent | 14b00bdd8d0f3a6bdbc5623a964177cc6df2f4cc (diff) | |
Render ui on top of path tracer result
Diffstat (limited to 'include')
| -rw-r--r-- | include/vk-api.hpp | 3 | ||||
| -rw-r--r-- | include/vk-renderer.hpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/vk-api.hpp b/include/vk-api.hpp index 78d7068..284f75c 100644 --- a/include/vk-api.hpp +++ b/include/vk-api.hpp @@ -19,6 +19,7 @@ struct Pipeline { VkDescriptorSetLayout descriptor_set_layout; VkPipelineLayout layout; VkPipeline handle; + VkPipelineBindPoint bind_point; }; struct Image { @@ -76,7 +77,7 @@ class vkapi { void destroy_command_buffers(std::vector<VkCommandBuffer> &command_buffers); - VkRenderPass create_render_pass(std::vector<VkFormat>& color_attachments_format); + VkRenderPass create_render_pass(std::vector<VkFormat>& color_attachments_format, VkImageLayout initial_layout, VkImageLayout final_layout); VkRenderPass create_render_pass(std::vector<VkFormat>& color_attachments_format, VkFormat depth_attachement_format); void destroy_render_pass(VkRenderPass render_pass); diff --git a/include/vk-renderer.hpp b/include/vk-renderer.hpp index 199900e..5dc6c97 100644 --- a/include/vk-renderer.hpp +++ b/include/vk-renderer.hpp @@ -19,7 +19,7 @@ class vkrenderer { void ui(); - void compute(uint32_t width, uint32_t height, bool clear); + void compute(uint32_t width, uint32_t height, bool clear, bool render_sample); void finish_frame(); |
