From fae9916708513a29ed05a61571b0c0b8f8da5cde Mon Sep 17 00:00:00 2001 From: ZeroFault Date: Fri, 2 Mar 2018 02:33:06 -0700 Subject: [PATCH] Debug logging for compute shaders (#115) * Add debug logging for compute shaders * remove redundant nullptr check --- src/dxvk/dxvk_compute.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dxvk/dxvk_compute.cpp b/src/dxvk/dxvk_compute.cpp index 9e0b6e18..e97c316a 100644 --- a/src/dxvk/dxvk_compute.cpp +++ b/src/dxvk/dxvk_compute.cpp @@ -49,6 +49,11 @@ namespace dxvk { void DxvkComputePipeline::compilePipeline() { std::vector bindings; + + if (Logger::logLevel() <= LogLevel::Debug) { + Logger::debug("Compiling compute pipeline..."); + Logger::debug(str::format(" cs : ", m_cs ->debugName())); + } VkComputePipelineCreateInfo info; info.sType = VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO;