diff options
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(); |
