X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fcommands_backend.h;h=7e1554413bb10acebd50e840a540ed2c7dbd2777;hb=b7808c60e0bbbb198500066880b6ed37c0b0e9d0;hp=f96a441c434c5375cc8d0af4df25232ee39a128f;hpb=ce9cd2d34cbcbd772c9fa753b48b8e6a4d80f1e3;p=libs%2Fgl.git diff --git a/source/backends/vulkan/commands_backend.h b/source/backends/vulkan/commands_backend.h index f96a441c..7e155441 100644 --- a/source/backends/vulkan/commands_backend.h +++ b/source/backends/vulkan/commands_backend.h @@ -4,6 +4,7 @@ #include #include "fence.h" #include "handles.h" +#include "rect.h" namespace Msp { namespace GL { @@ -14,7 +15,6 @@ class Device; class Framebuffer; class PipelineState; class QueryPool; -struct Rect; class Semaphore; class SwapChain; @@ -43,13 +43,15 @@ protected: Device &device; std::vector command_pools; - CommandPool *current_pool = 0; + unsigned frame_index = 0; VkCommandBuffer primary_buffer = 0; VkCommandBuffer pass_buffer = 0; const PipelineState *pipeline_state = 0; + const PipelineState *last_pipeline = 0; const Framebuffer *framebuffer = 0; - const Rect *viewport = 0; + Rect viewport = Rect::max(); bool fb_is_swapchain = false; + bool discard_fb_contents = false; std::vector pass_begin_info; VulkanCommands();