1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxbc] Add method to count required registers for signatures

This commit is contained in:
Philip Rebohle 2019-01-26 17:11:49 +01:00
parent 0b5cffb0bb
commit b0b7960548
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 10 additions and 0 deletions

View File

@ -76,6 +76,14 @@ namespace dxvk {
} }
uint32_t DxbcIsgn::maxRegisterCount() const {
uint32_t result = 0;
for (auto e = this->begin(); e != this->end(); e++)
result = std::max(result, e->registerId + 1);
return result;
}
bool DxbcIsgn::compareSemanticNames( bool DxbcIsgn::compareSemanticNames(
const std::string& a, const std::string& b) const { const std::string& a, const std::string& b) const {
if (a.size() != b.size()) if (a.size() != b.size())

View File

@ -52,6 +52,8 @@ namespace dxvk {
DxbcRegMask regMask( DxbcRegMask regMask(
uint32_t registerId) const; uint32_t registerId) const;
uint32_t maxRegisterCount() const;
private: private:
std::vector<DxbcSgnEntry> m_entries; std::vector<DxbcSgnEntry> m_entries;