Print GPU Quirks At Startup

It is essential to know what quirks a certain GPU may have to debug an issue, these are now printed at startup into the log alongside all other GPU information. A new `QuirkManager::Summary` function was implemented to provide this functionality.
This commit is contained in:
PixelyIon
2021-11-12 20:25:24 +05:30
parent 01eb16e59a
commit 83ec99fa48
3 changed files with 14 additions and 1 deletions

View File

@ -30,4 +30,8 @@ namespace skyline {
supportsLogicOp = features2.features.logicOp;
}
std::string QuirkManager::Summary() {
return fmt::format("\n* Supports Last Provoking Vertex: {}\n* Supports Logical Operations: {}", supportsLastProvokingVertex, supportsLogicOp);
}
}

View File

@ -18,5 +18,10 @@ namespace skyline {
QuirkManager() = default;
QuirkManager(vk::PhysicalDeviceProperties properties, vk::PhysicalDeviceFeatures2 features, const std::vector<vk::ExtensionProperties>& extensions);
/**
* @return A summary of all the GPU quirks as a human-readable string
*/
std::string Summary();
};
}