コード例 #1
0
 public void GetDesc(ref D3D11_RASTERIZER_DESC pDesc)
 {
     if (m_GetDescFunc == null)
     {
         var fp = GetFunctionPointer(7);
         m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
     }
     m_GetDescFunc(m_ptr, ref pDesc);
 }
コード例 #2
0
ファイル: ID3D11Device.cs プロジェクト: ousttrue/NWindowsKits
 public int CreateRasterizerState(ref D3D11_RASTERIZER_DESC pRasterizerDesc, ref IntPtr ppRasterizerState)
 {
     if (m_CreateRasterizerStateFunc == null)
     {
         var fp = GetFunctionPointer(22);
         m_CreateRasterizerStateFunc = (CreateRasterizerStateFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateRasterizerStateFunc));
     }
     return(m_CreateRasterizerStateFunc(m_ptr, ref pRasterizerDesc, ref ppRasterizerState));
 }