コード例 #1
0
ファイル: d3d10shader.cs プロジェクト: ousttrue/ShrimpDX
 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
ファイル: d3dcompiler.cs プロジェクト: ousttrue/ShrimpDX
 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
ファイル: d3d10shader.cs プロジェクト: ousttrue/ShrimpDX
 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
ファイル: d3dcompiler.cs プロジェクト: ousttrue/ShrimpDX
 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
     );