Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        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));
        }