0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-23 05:45:47 +00:00

More cleanup

This commit is contained in:
Isaac Marovitz 2024-05-29 16:31:49 +01:00 committed by Isaac Marovitz
parent 362746887e
commit ba07a8c603
2 changed files with 7 additions and 7 deletions

View file

@ -188,7 +188,7 @@ namespace Ryujinx.Graphics.Metal
return renderCommandEncoder; return renderCommandEncoder;
} }
public MTLComputeCommandEncoder CreateComputeCommandEncoder() public readonly MTLComputeCommandEncoder CreateComputeCommandEncoder()
{ {
var descriptor = new MTLComputePassDescriptor(); var descriptor = new MTLComputePassDescriptor();
var computeCommandEncoder = _pipeline.CommandBuffer.ComputeCommandEncoder(descriptor); var computeCommandEncoder = _pipeline.CommandBuffer.ComputeCommandEncoder(descriptor);

View file

@ -283,17 +283,17 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
if (isArray) if (isArray)
{ {
texCall += ", " + Src(AggregateType.S32); Append(Src(AggregateType.S32));
} }
if (isShadow) if (isShadow)
{ {
texCall += ", " + Src(AggregateType.S32); Append(Src(AggregateType.S32));
} }
if (hasLodLevel) if (hasLodLevel)
{ {
texCall += $", level({Src(coordType)})"; Append("level({Src(coordType)})");
} }
// TODO: Support offsets // TODO: Support offsets
@ -343,7 +343,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
string samplerName = GetSamplerName(context.Properties, texOp); string samplerName = GetSamplerName(context.Properties, texOp);
string textureName = $"tex_{samplerName}"; string textureName = $"tex_{samplerName}";
string texCall = textureName + "."; string texCall = textureName + ".";
texCall += $"get_num_samples()"; texCall += "get_num_samples()";
return texCall; return texCall;
} }
@ -358,7 +358,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
if (texOp.Index == 3) if (texOp.Index == 3)
{ {
texCall += $"get_num_mip_levels()"; texCall += "get_num_mip_levels()";
} }
else else
{ {
@ -389,7 +389,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
texCall += $"{lodExpr}"; texCall += $"{lodExpr}";
} }
texCall += $")"; texCall += ")";
} }
return texCall; return texCall;