Isn’t that conveniant?
This commit is contained in:
parent
7cb91d8e5f
commit
eeddfe63ea
3 changed files with 2 additions and 6 deletions
|
@ -2,9 +2,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
|
||||||
{
|
{
|
||||||
static class HelperFunctionNames
|
static class HelperFunctionNames
|
||||||
{
|
{
|
||||||
public static string MultiplyHighS32 = "helperMultiplyHighS32";
|
|
||||||
public static string MultiplyHighU32 = "helperMultiplyHighU32";
|
|
||||||
|
|
||||||
public static string Shuffle = "helperShuffle";
|
public static string Shuffle = "helperShuffle";
|
||||||
public static string ShuffleDown = "helperShuffleDown";
|
public static string ShuffleDown = "helperShuffleDown";
|
||||||
public static string ShuffleUp = "helperShuffleUp";
|
public static string ShuffleUp = "helperShuffleUp";
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
template<>
|
|
||||||
inline bool voteAllEqual(bool value)
|
inline bool voteAllEqual(bool value)
|
||||||
{
|
{
|
||||||
return simd_all(value) || !simd_any(value);
|
return simd_all(value) || !simd_any(value);
|
||||||
|
|
|
@ -98,8 +98,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
|
||||||
Add(Instruction.MinimumU32, InstType.CallBinary, "min");
|
Add(Instruction.MinimumU32, InstType.CallBinary, "min");
|
||||||
Add(Instruction.Modulo, InstType.CallBinary, "%");
|
Add(Instruction.Modulo, InstType.CallBinary, "%");
|
||||||
Add(Instruction.Multiply, InstType.OpBinaryCom, "*", 1);
|
Add(Instruction.Multiply, InstType.OpBinaryCom, "*", 1);
|
||||||
Add(Instruction.MultiplyHighS32, InstType.CallBinary, HelperFunctionNames.MultiplyHighS32);
|
Add(Instruction.MultiplyHighS32, InstType.CallBinary, "mulhi");
|
||||||
Add(Instruction.MultiplyHighU32, InstType.CallBinary, HelperFunctionNames.MultiplyHighU32);
|
Add(Instruction.MultiplyHighU32, InstType.CallBinary, "mulhi");
|
||||||
Add(Instruction.Negate, InstType.OpUnary, "-");
|
Add(Instruction.Negate, InstType.OpUnary, "-");
|
||||||
Add(Instruction.ReciprocalSquareRoot, InstType.CallUnary, "rsqrt");
|
Add(Instruction.ReciprocalSquareRoot, InstType.CallUnary, "rsqrt");
|
||||||
Add(Instruction.Return, InstType.OpNullary, "return");
|
Add(Instruction.Return, InstType.OpNullary, "return");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue