public static string ShowOutput(string source, ShaderVersion shaderVersion) { var result = Process(source, shaderVersion); if (result == null) { throw new ArgumentNullException("Shader translator", "Shader translator for " + shaderVersion.ToString() + " platform is null"); } return(result.ShowOutput()); }
public static byte[] BuildAndShowOutput(string source, ShaderVersion shaderVersion, bool optimize, out string output) { var result = Process(source, shaderVersion); output = result.ShowOutput(); if (result == null) { throw new ArgumentNullException("Shader translator", "Shader translator for " + shaderVersion.ToString() + " platform is null"); } return(result.Build(optimize)); }