void VulkanCommands::end_render_pass()
{
const VulkanFunctions &vk = device.get_functions();
- VulkanCommandRecorder vkCmd(vk, pass_buffer);
+ VulkanCommandRecorder vkCmd(vk, primary_buffer);
vk.EndCommandBuffer(pass_buffer);
if(!pipeline_state)
throw invalid_operation("VulkanCommands::draw_instanced");
- const VulkanFunctions &vk = device.get_functions();
- VulkanCommandRecorder vkCmd(vk, pass_buffer);
-
if(!framebuffer)
begin_render_pass(false, 0);
+ VulkanCommandRecorder vkCmd(device.get_functions(), pass_buffer);
+
pipeline_state->refresh();
pipeline_state->apply(vkCmd, last_pipeline, frame_index, fb_is_swapchain);
last_pipeline = pipeline_state;