예제 #1
0
 public static extern int D3D10PreprocessShader(
     [MarshalAs(UnmanagedType.LPStr)] string pSrcData,
     ulong SrcDataSize,
     [MarshalAs(UnmanagedType.LPStr)] string pFileName,
     ref _D3D_SHADER_MACRO pDefines,
     IntPtr pInclude,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <ID3D10Blob>))] out ID3D10Blob ppShaderText,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <ID3D10Blob>))] out ID3D10Blob ppErrorMsgs
     );
예제 #2
0
 public static extern int D3DCompileFromFile(
     ref ushort pFileName,
     ref _D3D_SHADER_MACRO pDefines,
     IntPtr pInclude,
     [MarshalAs(UnmanagedType.LPStr)] string pEntrypoint,
     [MarshalAs(UnmanagedType.LPStr)] string pTarget,
     uint Flags1,
     uint Flags2,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <ID3D10Blob>))] out ID3D10Blob ppCode,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <ID3D10Blob>))] out ID3D10Blob ppErrorMsgs
     );
예제 #3
0
 public static extern int D3D10CompileShader(
     [MarshalAs(UnmanagedType.LPStr)] string pSrcData,
     ulong SrcDataSize,
     [MarshalAs(UnmanagedType.LPStr)] string pFileName,
     ref _D3D_SHADER_MACRO pDefines,
     IntPtr pInclude,
     [MarshalAs(UnmanagedType.LPStr)] string pFunctionName,
     [MarshalAs(UnmanagedType.LPStr)] string pProfile,
     uint Flags,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <ID3D10Blob>))] out ID3D10Blob ppShader,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <ID3D10Blob>))] out ID3D10Blob ppErrorMsgs
     );
예제 #4
0
 public static extern int D3DCompile2(
     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,
     uint SecondaryDataFlags,
     IntPtr pSecondaryData,
     ulong SecondaryDataSize,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <ID3D10Blob>))] out ID3D10Blob ppCode,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <ID3D10Blob>))] out ID3D10Blob ppErrorMsgs
     );