diff options
Diffstat (limited to 'src/blu_cat/gra/graphics_pipeline_2d_wired.cpp')
-rw-r--r-- | src/blu_cat/gra/graphics_pipeline_2d_wired.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/blu_cat/gra/graphics_pipeline_2d_wired.cpp b/src/blu_cat/gra/graphics_pipeline_2d_wired.cpp index 1273c67..209dafd 100644 --- a/src/blu_cat/gra/graphics_pipeline_2d_wired.cpp +++ b/src/blu_cat/gra/graphics_pipeline_2d_wired.cpp @@ -250,24 +250,6 @@ GraphicsPipeline2DWired::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); - } // Draw rectangles { |