Allow shader language and target API to be specified on the shader translator (#2402)
This commit is contained in:
parent
b0ac1ade7f
commit
d125fce3e8
11 changed files with 87 additions and 27 deletions
|
@ -36,7 +36,8 @@ namespace Ryujinx.ShaderTools
|
|||
|
||||
byte[] data = File.ReadAllBytes(args[^1]);
|
||||
|
||||
string code = Translator.CreateContext(0, new GpuAccessor(data), flags).Translate(out _).Code;
|
||||
TranslationOptions options = new TranslationOptions(TargetLanguage.Glsl, TargetApi.OpenGL, flags);
|
||||
string code = Translator.CreateContext(0, new GpuAccessor(data), options).Translate(out _).Code;
|
||||
|
||||
Console.WriteLine(code);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue