mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-20 09:12:02 +00:00
Set TargetLanguage for Metal to MSL
This commit is contained in:
parent
98e2ab5a49
commit
6017c225b2
2 changed files with 7 additions and 4 deletions
|
@ -829,9 +829,12 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
||||||
/// <returns>Translation options</returns>
|
/// <returns>Translation options</returns>
|
||||||
private static TranslationOptions CreateTranslationOptions(TargetApi api, TranslationFlags flags)
|
private static TranslationOptions CreateTranslationOptions(TargetApi api, TranslationFlags flags)
|
||||||
{
|
{
|
||||||
TargetLanguage lang = GraphicsConfig.EnableSpirvCompilationOnVulkan && api == TargetApi.Vulkan
|
TargetLanguage lang = api switch
|
||||||
? TargetLanguage.Spirv
|
{
|
||||||
: TargetLanguage.Glsl;
|
TargetApi.OpenGL => TargetLanguage.Glsl,
|
||||||
|
TargetApi.Vulkan => GraphicsConfig.EnableSpirvCompilationOnVulkan ? TargetLanguage.Spirv : TargetLanguage.Glsl,
|
||||||
|
TargetApi.Metal => TargetLanguage.Msl,
|
||||||
|
};
|
||||||
|
|
||||||
return new TranslationOptions(lang, api, flags);
|
return new TranslationOptions(lang, api, flags);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
{
|
{
|
||||||
public ProgramLinkStatus CheckProgramLink(bool blocking)
|
public ProgramLinkStatus CheckProgramLink(bool blocking)
|
||||||
{
|
{
|
||||||
return ProgramLinkStatus.Failure;
|
return ProgramLinkStatus.Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] GetBinary()
|
public byte[] GetBinary()
|
||||||
|
|
Loading…
Reference in a new issue