Skip to content

Commit ccc6a75

Browse files
committed
Fix shader debugging
1 parent cf227b2 commit ccc6a75

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

EppoEngine/Source/Platform/Vulkan/VulkanSceneRenderer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,10 @@ namespace Eppo
752752
vkCmdDraw(commandBuffer, 36, 1, 0, 0);
753753

754754
renderer->EndRenderPass(m_CommandBuffer);
755+
756+
// End debug label
757+
if (m_RenderSpecification.DebugRendering)
758+
m_DebugRenderer->EndDebugLabel(m_CommandBuffer);
755759
});
756760
}
757761

EppoEngine/Source/Platform/Vulkan/VulkanShader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ namespace Eppo
125125
options.SetTargetEnvironment(shaderc_target_env_vulkan, shaderc_env_version_vulkan_1_3);
126126
options.SetIncluder(CreateScope<ShaderIncluder>());
127127
options.SetOptimizationLevel(shaderc_optimization_level_zero);
128+
options.SetGenerateDebugInfo();
128129

129130
// Compile source
130131
const shaderc::SpvCompilationResult result = compiler.CompileGlslToSpv(source, Utils::ShaderStageToShaderCKind(stage), GetSpecification().Filepath.string().c_str(), options);

0 commit comments

Comments
 (0)