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;
}
public MTLComputeCommandEncoder CreateComputeCommandEncoder()
public readonly MTLComputeCommandEncoder CreateComputeCommandEncoder()
{
var descriptor = new MTLComputePassDescriptor();
var computeCommandEncoder = _pipeline.CommandBuffer.ComputeCommandEncoder(descriptor);

View file

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