mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxbc] Add string output function for DxbcRegMask
This commit is contained in:
parent
2164a44887
commit
ff4fa29304
@ -187,6 +187,15 @@ namespace dxvk {
|
|||||||
return DxbcRegMask(n == 0, n == 1, n == 2, n == 3);
|
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:
|
private:
|
||||||
|
|
||||||
uint8_t m_mask = 0;
|
uint8_t m_mask = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user