예제 #1
0
 public static extern int D3DPreprocess(
     IntPtr pSrcData,
     ulong SrcDataSize,
     [MarshalAs(UnmanagedType.LPStr)] string pSourceName,
     ref D3D_SHADER_MACRO pDefines,
     IntPtr pInclude,
     ref IntPtr ppCodeText,
     ref IntPtr ppErrorMsgs
     );
예제 #2
0
 public static extern int D3DCompileFromFile(
     [MarshalAs(UnmanagedType.LPWStr)] string pFileName,
     ref D3D_SHADER_MACRO pDefines,
     IntPtr pInclude,
     [MarshalAs(UnmanagedType.LPStr)] string pEntrypoint,
     [MarshalAs(UnmanagedType.LPStr)] string pTarget,
     uint Flags1,
     uint Flags2,
     ref IntPtr ppCode,
     ref IntPtr ppErrorMsgs
     );
예제 #3
0
 public static extern int D3DCompile(
     IntPtr pSrcData,
     ulong SrcDataSize,
     [MarshalAs(UnmanagedType.LPStr)] string pSourceName,
     ref D3D_SHADER_MACRO pDefines,
     IntPtr pInclude,
     [MarshalAs(UnmanagedType.LPStr)] string pEntrypoint,
     [MarshalAs(UnmanagedType.LPStr)] string pTarget,
     uint Flags1,
     uint Flags2,
     ref IntPtr ppCode,
     ref IntPtr ppErrorMsgs
     );