WIP: Experimental: Metal backend #439

Closed
GreemDev wants to merge 374 commits from metal into master
4 changed files with 6 additions and 8 deletions
Showing only changes of commit 0c1acb5107 - Show all commits

View File

@ -868,7 +868,6 @@ namespace Ryujinx.Graphics.Metal
{
ref PipelineState pipeline = ref _currentState.Pipeline;
uint indexMask = 0;
int descriptorCount = 0;
for (int i = 0; i < attribDescriptors.Length; i++)
{
@ -1352,7 +1351,7 @@ namespace Ryujinx.Graphics.Metal
}
}
private uint SetIndexToBindingIndex(int setIndex)
private static uint SetIndexToBindingIndex(int setIndex)
{
return setIndex switch
{
@ -1363,7 +1362,6 @@ namespace Ryujinx.Graphics.Metal
};
}
private readonly void SetCullMode(MTLRenderCommandEncoder renderCommandEncoder)
{
renderCommandEncoder.SetCullMode(_currentState.CullMode);

View File

@ -218,7 +218,7 @@ namespace Ryujinx.Graphics.Metal
}
case EncoderType.Compute:
{
var scope = MTLBarrierScope.Buffers | MTLBarrierScope.Textures | MTLBarrierScope.RenderTargets;;
var scope = MTLBarrierScope.Buffers | MTLBarrierScope.Textures | MTLBarrierScope.RenderTargets;
Encoders.ComputeEncoder.MemoryBarrier(scope);
break;
}