mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 11:03:04 +00:00
More cleanup
This commit is contained in:
parent
362746887e
commit
ba07a8c603
2 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue