From fc8a57751619466086bbe9f1435a5c4d32a9cdd9 Mon Sep 17 00:00:00 2001 From: ink-soul Date: Thu, 1 Jun 2023 16:41:14 +0800 Subject: [PATCH] Update render.cpp --- src/render/render.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/render/render.cpp b/src/render/render.cpp index 311320e..8b35f46 100644 --- a/src/render/render.cpp +++ b/src/render/render.cpp @@ -1634,6 +1634,7 @@ void VulkanExample::OnUpdateUIOverlay(vks::UIOverlay *overlay) { + GUIFunction guiFunc{}; if (overlay->header("Settings")) { if (overlay->checkBox("Wireframe", &wireframe)) { buildCommandBuffers(); @@ -1659,11 +1660,21 @@ { if (overlay->button("select model")) { - GUIFunction guiFunc{}; + std::string strModelFilePath; strModelFilePath = guiFunc.openFileFolderDialog(); filePath.glTFModelFilePath = strModelFilePath; loadAssets(); + + } + if(overlay->button("select vertexShader")) + { + + std::string strFilePath; + strFilePath = guiFunc.openFileFolderDialog(); + filePath.glTFModelFilePath = strFilePath; + loadAssets(); + } } }