X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fcommands_backend.h;h=a89225a6f6cdaa82279ec08e444e500b79789161;hb=e4ae14435fa93ac1bcb13c6838b0ad3c923c8fde;hp=8632ca7c2648e355091faccd69c75cc3aa6c33dc;hpb=99ca354f18119f82f1adeca100cd665a8f640317;p=libs%2Fgl.git diff --git a/source/backends/vulkan/commands_backend.h b/source/backends/vulkan/commands_backend.h index 8632ca7c..a89225a6 100644 --- a/source/backends/vulkan/commands_backend.h +++ b/source/backends/vulkan/commands_backend.h @@ -14,6 +14,7 @@ class Device; class Framebuffer; class PipelineState; class QueryPool; +struct Rect; class Semaphore; class SwapChain; @@ -24,6 +25,8 @@ protected: { Device &device; VkCommandPool pool = 0; + std::vector buffers; + unsigned next_buffer = 0; Fence fence; bool in_use = false; @@ -37,13 +40,14 @@ protected: CommandPool *current_pool = 0; VkCommandBuffer current_buffer = 0; const PipelineState *pipeline_state = 0; - VkRenderPass render_pass = 0; + const Framebuffer *framebuffer = 0; + const Rect *viewport = 0; VulkanCommands(); ~VulkanCommands(); void begin_buffer(); - void begin_render_pass(const ClearValue *); + void begin_render_pass(bool, const ClearValue *); void end_render_pass(); void begin_frame(unsigned);