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:
parent
2164a44887
commit
ff4fa29304
@ -186,6 +186,15 @@ namespace dxvk {
|
|||||||
static DxbcRegMask select(uint32_t n) {
|
static DxbcRegMask select(uint32_t n) {
|
||||||
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:
|
||||||
|
|
||||||
@ -485,4 +494,4 @@ namespace dxvk {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user