Created
May 30, 2022 20:57
-
-
Save SeppahBaws/00b15759685fbc02ac447321db9e8eb8 to your computer and use it in GitHub Desktop.
Reloading a shader in my Vulkan renderer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void VulkanRenderer::ReloadShaders() | |
| { | |
| m_pDevice->WaitIdle(); | |
| m_Pipeline.Cleanup(m_pDevice->GetDevice()); | |
| m_pDevice->GetDevice().destroyRenderPass(m_RenderPass); | |
| CreateRenderPass(); | |
| CreateGraphicsPipeline(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment