mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxbc] Print shader signatures at debug loglevel
This commit is contained in:
parent
ff4fa29304
commit
2e83aae472
@ -83,6 +83,20 @@ namespace dxvk {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DxbcIsgn::printEntries() const {
|
||||||
|
for (auto entry = this->begin(); entry != this->end(); entry++) {
|
||||||
|
Logger::debug(str::format("SGN Entry:\n\t",
|
||||||
|
"semanticName: ", entry->semanticName, "\n\t",
|
||||||
|
"semanticIndex: ", entry->semanticIndex, "\n\t",
|
||||||
|
"registerId: ", entry->registerId, "\n\t",
|
||||||
|
"componentMask: ", entry->componentMask.maskString(), "\n\t",
|
||||||
|
"componentType: ", entry->componentType, "\n\t",
|
||||||
|
"systemValue: ", entry->systemValue, "\n\t",
|
||||||
|
"streamId: ", entry->streamId, "\n",
|
||||||
|
"\n"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool DxbcIsgn::compareSemanticNames(
|
bool DxbcIsgn::compareSemanticNames(
|
||||||
const std::string& a, const std::string& b) const {
|
const std::string& a, const std::string& b) const {
|
||||||
|
@ -54,6 +54,8 @@ namespace dxvk {
|
|||||||
|
|
||||||
uint32_t maxRegisterCount() const;
|
uint32_t maxRegisterCount() const;
|
||||||
|
|
||||||
|
void printEntries() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
std::vector<DxbcSgnEntry> m_entries;
|
std::vector<DxbcSgnEntry> m_entries;
|
||||||
|
@ -33,6 +33,21 @@ namespace dxvk {
|
|||||||
m_module.addDebugString(fileName.c_str()),
|
m_module.addDebugString(fileName.c_str()),
|
||||||
nullptr);
|
nullptr);
|
||||||
|
|
||||||
|
if (Logger::logLevel() <= LogLevel::Debug) {
|
||||||
|
if (m_isgn != nullptr) {
|
||||||
|
Logger::debug(str::format("Input Signature for - ", fileName.c_str(), "\n"));
|
||||||
|
m_isgn->printEntries();
|
||||||
|
}
|
||||||
|
if (m_osgn != nullptr) {
|
||||||
|
Logger::debug(str::format("Output Signature for - ", fileName.c_str(), "\n"));
|
||||||
|
m_osgn->printEntries();
|
||||||
|
}
|
||||||
|
if (m_psgn != nullptr) {
|
||||||
|
Logger::debug(str::format("Patch Constant Signature for - ", fileName.c_str(), "\n"));
|
||||||
|
m_psgn->printEntries();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Set the memory model. This is the same for all shaders.
|
// Set the memory model. This is the same for all shaders.
|
||||||
m_module.setMemoryModel(
|
m_module.setMemoryModel(
|
||||||
spv::AddressingModelLogical,
|
spv::AddressingModelLogical,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user