1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 22:24:15 +01:00

Debug logging for compute shaders (#115)

* Add debug logging for compute shaders

* remove redundant nullptr check
This commit is contained in:
ZeroFault 2018-03-02 02:33:06 -07:00 committed by Philip Rebohle
parent e0fbfdf0e2
commit fae9916708

View File

@ -49,6 +49,11 @@ namespace dxvk {
void DxvkComputePipeline::compilePipeline() { void DxvkComputePipeline::compilePipeline() {
std::vector<VkDescriptorSetLayoutBinding> bindings; std::vector<VkDescriptorSetLayoutBinding> bindings;
if (Logger::logLevel() <= LogLevel::Debug) {
Logger::debug("Compiling compute pipeline...");
Logger::debug(str::format(" cs : ", m_cs ->debugName()));
}
VkComputePipelineCreateInfo info; VkComputePipelineCreateInfo info;
info.sType = VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO; info.sType = VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO;