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:
parent
0b5cffb0bb
commit
b0b7960548
@ -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(
|
||||
const std::string& a, const std::string& b) const {
|
||||
if (a.size() != b.size())
|
||||
|
@ -52,6 +52,8 @@ namespace dxvk {
|
||||
DxbcRegMask regMask(
|
||||
uint32_t registerId) const;
|
||||
|
||||
uint32_t maxRegisterCount() const;
|
||||
|
||||
private:
|
||||
|
||||
std::vector<DxbcSgnEntry> m_entries;
|
||||
|
Loading…
x
Reference in New Issue
Block a user