Hello, I am using Push Constants
These update push constant data inside buildCommandBuffers
function
But I don’t want to recreate commandbuffers only for updating push constant data
So, can I update push constant data inside this draw()
below (without calling buildCommanBuffers
repeatedly?)
void VulkanApp::draw()
{
VulkanExampleBase::prepareFrame();
submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = &drawCmdBuffers[currentBuffer];
VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, VK_NULL_HANDLE));
VulkanExampleBase::submitFrame();
}