Esempio n. 1
0
        public static string Disassemble(ShaderModel shaderModel)
        {
            if (shaderModel.Type == ShaderType.Effect)
            {
                var effectWriter = new EffectAsmWriter(shaderModel.EffectChunk);
                return(effectWriter.Decompile());
            }
            var asmWriter = new AsmWriter(shaderModel);

            return(asmWriter.Decompile());
        }
        public static string Disassemble(FX9.EffectContainer effectChunk)
        {
            var asmWriter = new EffectAsmWriter(effectChunk);

            return(asmWriter.Decompile());
        }