Exemplo 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());
        }
Exemplo n.º 2
0
        public static string Disassemble(FX9.EffectContainer effectChunk)
        {
            var asmWriter = new EffectAsmWriter(effectChunk);

            return(asmWriter.Decompile());
        }