IaIndexing

Fixes shader problems in Donkey Kong Country Tropical Freeze, and Fire Emblem: Three Houses
This commit is contained in:
Isaac Marovitz
2024-08-11 20:29:08 +01:00
committed by Evan Husted
parent 4a11cc9c7a
commit 1fc96128fa
3 changed files with 175 additions and 144 deletions

View File

@@ -76,7 +76,7 @@ namespace Ryujinx.Graphics.Metal
return;
}
switch (_shaders[index].Stage)
switch (shader.Stage)
{
case ShaderStage.Compute:
ComputeFunction = library.NewFunction(StringHelper.NSString("kernelMain"));
@@ -88,7 +88,7 @@ namespace Ryujinx.Graphics.Metal
FragmentFunction = library.NewFunction(StringHelper.NSString("fragmentMain"));
break;
default:
Logger.Warning?.Print(LogClass.Gpu, $"Cannot handle stage {_shaders[index].Stage}!");
Logger.Warning?.Print(LogClass.Gpu, $"Cannot handle stage {shader.Stage}!");
break;
}