1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxbc] Add string output function for DxbcRegMask

This commit is contained in:
Liam Middlebrook 2019-07-10 14:55:21 -07:00 committed by Philip Rebohle
parent 2164a44887
commit ff4fa29304

View File

@ -187,6 +187,15 @@ namespace dxvk {
return DxbcRegMask(n == 0, n == 1, n == 2, n == 3);
}
std::string maskString() const {
std::string out = "";
out += (m_mask & 0x1) ? "x" : "";
out += (m_mask & 0x2) ? "y" : "";
out += (m_mask & 0x4) ? "z" : "";
out += (m_mask & 0x8) ? "w" : "";
return out;
}
private:
uint8_t m_mask = 0;