If one shader fails, whole program fails

This commit is contained in:
Isaac Marovitz 2023-10-10 21:56:08 -04:00
parent 6e3b317d26
commit cec40e5bd5
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 17 additions and 18 deletions

View File

@ -28,9 +28,9 @@ namespace Ryujinx.Graphics.Metal
{
Logger.Warning?.Print(LogClass.Gpu, $"Shader linking failed: \n{StringHelper.String(libraryError.LocalizedDescription)}");
_status = ProgramLinkStatus.Failure;
return;
}
else
{
switch (shaders[index].Stage)
{
case ShaderStage.Compute:
@ -46,11 +46,10 @@ namespace Ryujinx.Graphics.Metal
Logger.Warning?.Print(LogClass.Gpu, $"Cannot handle stage {shaders[index].Stage}!");
break;
}
}
_status = ProgramLinkStatus.Success;
}
}
}
public ProgramLinkStatus CheckProgramLink(bool blocking)
{