mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-23 20:05:01 +00:00
parent
f8f732e78c
commit
fffd373652
1 changed files with 4 additions and 3 deletions
|
@ -9,9 +9,10 @@ namespace Shader::IR {
|
|||
|
||||
std::string NameOf(Type type) {
|
||||
static constexpr std::array names{
|
||||
"Opaque", "Label", "Reg", "Pred", "Attribute", "U1", "U8", "U16", "U32",
|
||||
"U64", "F16", "F32", "F64", "U32x2", "U32x3", "U32x4", "F16x2", "F16x3",
|
||||
"F16x4", "F32x2", "F32x3", "F32x4", "F64x2", "F64x3", "F64x4", "StringLiteral"};
|
||||
"Opaque", "ScalarReg", "VectorReg", "Attribute", "Patch", "U1", "U8",
|
||||
"U16", "U32", "U64", "F16", "F32", "F64", "U32x2",
|
||||
"U32x3", "U32x4", "F16x2", "F16x3", "F16x4", "F32x2", "F32x3",
|
||||
"F32x4", "F64x2", "F64x3", "F64x4", "StringLiteral"};
|
||||
const size_t bits{static_cast<size_t>(type)};
|
||||
if (bits == 0) {
|
||||
return "Void";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue