Skip to content

Instantly share code, notes, and snippets.

@SeppahBaws
Created May 30, 2022 20:57
Show Gist options
  • Select an option

  • Save SeppahBaws/00b15759685fbc02ac447321db9e8eb8 to your computer and use it in GitHub Desktop.

Select an option

Save SeppahBaws/00b15759685fbc02ac447321db9e8eb8 to your computer and use it in GitHub Desktop.

Revisions

  1. SeppahBaws created this gist May 30, 2022.
    10 changes: 10 additions & 0 deletions VulkanRenderer.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    void VulkanRenderer::ReloadShaders()
    {
    m_pDevice->WaitIdle();

    m_Pipeline.Cleanup(m_pDevice->GetDevice());
    m_pDevice->GetDevice().destroyRenderPass(m_RenderPass);

    CreateRenderPass();
    CreateGraphicsPipeline();
    }