Fix IoMap variable names
This commit is contained in:
parent
d0566c2200
commit
9af4874fd5
1 changed files with 1 additions and 15 deletions
|
@ -52,21 +52,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
|
||||||
name += "_" + "xyzw"[component & 3];
|
name += "_" + "xyzw"[component & 3];
|
||||||
}
|
}
|
||||||
|
|
||||||
string prefix = "";
|
string prefix = isOutput ? "out" : "in";
|
||||||
switch (definitions.Stage)
|
|
||||||
{
|
|
||||||
case ShaderStage.Vertex:
|
|
||||||
prefix = "Vertex";
|
|
||||||
break;
|
|
||||||
case ShaderStage.Fragment:
|
|
||||||
prefix = "Fragment";
|
|
||||||
break;
|
|
||||||
case ShaderStage.Compute:
|
|
||||||
prefix = "Compute";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
prefix += isOutput ? "Out" : "In";
|
|
||||||
|
|
||||||
return (prefix + "." + name, definitions.GetUserDefinedType(location, isOutput));
|
return (prefix + "." + name, definitions.GetUserDefinedType(location, isOutput));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue