Lines Matching refs:currentCmdBuffer
2349 VkCommandBuffer currentCmdBuffer = *cmdBuffer;
2351 beginCommandBuffer(vk, currentCmdBuffer);
2352 rt.recordBeginRenderPass(vk, currentCmdBuffer, renderArea, (useSecondaryCmdBuffer() ? VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS : VK_SUBPASS_CONTENTS_INLINE));
2358 currentCmdBuffer = *secondaryCmdBuffer;
2360 beginSecondaryCommandBuffer(vk, currentCmdBuffer, rt.getRenderPassWrapper(), /*subpass*/ 0u, m_params.numSamples, m_params.pipelineConstructionType);
2363 vk.cmdBindVertexBuffers(currentCmdBuffer, /*first binding*/ 0u, /*num bindings*/ 1u, &m_vertexBuffer.get(), /*offsets*/ &ZERO);
2364 pipeline.bind(currentCmdBuffer);
2367 vk.cmdDraw(currentCmdBuffer, m_numVertices, /*instance count*/ 1u, /*first vertex*/ 0u, /*first instance*/ 1u);
2371 endCommandBuffer(vk, currentCmdBuffer);
2372 currentCmdBuffer = *cmdBuffer;
2374 vk.cmdExecuteCommands(currentCmdBuffer, 1u, &secondaryCmdBuffer.get());
2565 VkCommandBuffer currentCmdBuffer = *cmdBuffer[0];
2566 beginCommandBuffer(vk, currentCmdBuffer);
2571 rt[0].recordBeginRenderPass(vk, currentCmdBuffer, renderArea, VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS);
2572 vk.cmdExecuteCommands(currentCmdBuffer, 1u, &secondaryCmdBuffer[0].get());
2573 rt[0].endRenderPass(vk, currentCmdBuffer);
2577 rt[0].recordBeginRenderPass(vk, currentCmdBuffer, renderArea, VK_SUBPASS_CONTENTS_INLINE);
2578 recordFirstPassContents(currentCmdBuffer, pipelines[0], sampleLocationsInfo[0]);
2579 rt[0].endRenderPass(vk, currentCmdBuffer);
2582 endCommandBuffer(vk, currentCmdBuffer);
2585 currentCmdBuffer = *cmdBuffer[1];
2586 beginCommandBuffer(vk, currentCmdBuffer);
2593 recordImageBarrier(vk, currentCmdBuffer, *m_colorImage,
2603 vk.cmdClearColorImage(currentCmdBuffer, *m_colorImage, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, &clearColor1.color, 1u, &subresourceRange);
2605 recordImageBarrier(vk, currentCmdBuffer, *m_colorImage,
2620 recordImageBarrier(vk, currentCmdBuffer, *m_depthStencilImage,
2631 vk.cmdClearDepthStencilImage(currentCmdBuffer, *m_depthStencilImage, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, &clearDepthStencil0.depthStencil, 1u, &subresourceRange);
2633 recordImageBarrier(vk, currentCmdBuffer, *m_depthStencilImage,
2649 recordImageBarrier(vk, currentCmdBuffer, *m_colorImage,
2661 recordImageBarrier(vk, currentCmdBuffer, *m_depthStencilImage,
2677 vk.cmdSetEvent(currentCmdBuffer, *event[0], VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT);
2679 recordWaitEventWithImage(vk, currentCmdBuffer, *event[0], *m_colorImage,
2692 vk.cmdSetEvent(currentCmdBuffer, *event[1], VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT);
2694 recordWaitEventWithImage(vk, currentCmdBuffer, *event[1], *m_depthStencilImage,
2709 rt[1].recordBeginRenderPass(vk, currentCmdBuffer, renderArea, VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS);
2710 vk.cmdExecuteCommands(currentCmdBuffer, 1u, &secondaryCmdBuffer[1].get());
2711 rt[1].endRenderPass(vk, currentCmdBuffer);
2715 rt[1].recordBeginRenderPass(vk, currentCmdBuffer, renderArea, VK_SUBPASS_CONTENTS_INLINE);
2716 recordSecondPassContents(currentCmdBuffer, pipelines[1], sampleLocationsInfo[1], clearColor1, clearDepthStencil0, scissor);
2717 rt[1].endRenderPass(vk, currentCmdBuffer);
2721 recordCopyImageToBuffer(vk, currentCmdBuffer, m_renderSize, *m_resolveImage, *m_colorBuffer);
2723 endCommandBuffer(vk, currentCmdBuffer);