mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-21 00:32:03 +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;
|
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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue