class Framebuffer;
class PipelineState;
class QueryPool;
+struct Rect;
class Semaphore;
class SwapChain;
{
Device &device;
VkCommandPool pool = 0;
+ std::vector<VkCommandBuffer> buffers;
+ unsigned next_buffer = 0;
Fence fence;
bool in_use = false;
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);