mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 14:52:10 +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(
|
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())
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user