-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOpenFile.cs
29 lines (26 loc) · 1003 Bytes
/
OpenFile.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
//using Microsoft.Xna.Framework.Graphics;
namespace ShaderEditor
{
class Test
{
//[DllImport("Microsoft.Xna.Framework.dll", CallingConvention = CallingConvention.StdCall, SetLastError = true)]
//[MethodImpl(MethodImplOptions.Unmanaged, MethodCodeType = MethodCodeType.Native)]
//[SuppressUnmanagedCodeSecurity]
//private unsafe static extern int D3DXDisassembleShader(uint* P_0, int P_1, sbyte* P_2, ID3DXBuffer** P_3);
//public static void Test1()
//{
// byte[] shader = System.IO.File.ReadAllBytes("tmp.fxc");
// shader = new byte[4];
// string asm = Microsoft.Xna.Framework.Graphics.ShaderCompiler.Disassemble(shader, true, "xbox360");
// //string asmShader = ShaderCompiler.Disassemble(shader, false, "ssds");
//}
}
}