feat(bindless): Print correct shader size in debug output

This commit is contained in:
PancakeTAS 2026-04-25 23:50:32 +02:00
parent 50c3895c62
commit 5438886234
No known key found for this signature in database

View file

@ -77,7 +77,7 @@ ShaderLibrary::ShaderLibrary(
LOG_DEBUG(" " << std::setw(2) << idx
<< ": name=" << name
<< ", rid=" << rid
<< ", size=" << it->second.size() << " bytes")
<< ", size=" << (it->second.size() * 4) << " bytes")
this->m_baseShaders[name] = vkhelper::createShaderModule(dld, device, it->second);
}
@ -99,10 +99,10 @@ ShaderLibrary::ShaderLibrary(
<< ": name=" << std::setw(8) << name
<< ", [Q] "
<< "rid="<< std::setw(2) << rid.first
<< ", size="<< std::setw(5) << qit->second.size() << " bytes"
<< ", size="<< std::setw(5) << (qit->second.size() * 4) << " bytes"
<< ", [P] "
<< "rid="<< std::setw(2) << rid.second
<< ", size="<< std::setw(5) << pit->second.size() << " bytes")
<< ", size="<< std::setw(5) << (pit->second.size() * 4) << " bytes")
this->m_qualityShaders[name] = vkhelper::createShaderModule(dld, device, qit->second);
this->m_performanceShaders[name] = vkhelper::createShaderModule(dld, device, pit->second);