diff options
Diffstat (limited to 'src/blu_cat/gra/graphics_pipeline_2d_solid.cpp')
-rw-r--r-- | src/blu_cat/gra/graphics_pipeline_2d_solid.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/blu_cat/gra/graphics_pipeline_2d_solid.cpp b/src/blu_cat/gra/graphics_pipeline_2d_solid.cpp index 05dcbe1..0d72fc9 100644 --- a/src/blu_cat/gra/graphics_pipeline_2d_solid.cpp +++ b/src/blu_cat/gra/graphics_pipeline_2d_solid.cpp @@ -238,25 +238,6 @@ GraphicsPipeline2DSolid::draw( const VkCommandBuffer draw_command_buffer, const size_t current_frame, const size_t next_frame, const uint32_t image_index) { - // TODO set viewport just once per view, not once per pipeline. - { // Set viewport - VkViewport vk_viewport{}; - vk_viewport.x = 0; - vk_viewport.y = 0; - vk_viewport.width = static_cast<float>(BluCat::INT::core.display_width); - vk_viewport.height = static_cast<float>(BluCat::INT::core.display_height); - vk_viewport.minDepth = 0.0f; - vk_viewport.maxDepth = 1.0f; - vkCmdSetViewport(draw_command_buffer, 0, 1, &vk_viewport); - - VkRect2D vk_scissor{}; - vk_scissor.offset.x = 0; - vk_scissor.offset.y = 0; - vk_scissor.extent.width = BluCat::INT::core.display_width; - vk_scissor.extent.height = BluCat::INT::core.display_height; - vkCmdSetScissor(draw_command_buffer, 0, 1, &vk_scissor); - } - vkCmdBindPipeline( draw_command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, this->graphic_pipeline); |