Skip to content

Commit

Permalink
Fix shader debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
nepp95 committed Dec 24, 2024
1 parent cf227b2 commit ccc6a75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions EppoEngine/Source/Platform/Vulkan/VulkanSceneRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,10 @@ namespace Eppo
vkCmdDraw(commandBuffer, 36, 1, 0, 0);

renderer->EndRenderPass(m_CommandBuffer);

// End debug label
if (m_RenderSpecification.DebugRendering)
m_DebugRenderer->EndDebugLabel(m_CommandBuffer);
});
}

Expand Down
1 change: 1 addition & 0 deletions EppoEngine/Source/Platform/Vulkan/VulkanShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ namespace Eppo
options.SetTargetEnvironment(shaderc_target_env_vulkan, shaderc_env_version_vulkan_1_3);
options.SetIncluder(CreateScope<ShaderIncluder>());
options.SetOptimizationLevel(shaderc_optimization_level_zero);
options.SetGenerateDebugInfo();

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

0 comments on commit ccc6a75

Please sign in to comment.