示例#1
0
        public static string Decompile(ShaderModel shaderModel, string entryPoint = null)
        {
            if (shaderModel.Type == ShaderType.Effect)
            {
                return(EffectHLSLWriter.Decompile(shaderModel.EffectChunk));
            }
            var hlslWriter = new HlslWriter(shaderModel, false, entryPoint);

            return(hlslWriter.Decompile());
        }
        public static string Decompile(EffectContainer effectChunk)
        {
            var asmWriter = new EffectHLSLWriter(effectChunk);

            return(asmWriter.Decompile());
        }