コード例 #1
0
ファイル: ID3D11Device.cs プロジェクト: ousttrue/NWindowsKits
 public int CreateRenderTargetView(IntPtr pResource, ref D3D11_RENDER_TARGET_VIEW_DESC pDesc, ref IntPtr ppRTView)
 {
     if (m_CreateRenderTargetViewFunc == null)
     {
         var fp = GetFunctionPointer(9);
         m_CreateRenderTargetViewFunc = (CreateRenderTargetViewFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateRenderTargetViewFunc));
     }
     return(m_CreateRenderTargetViewFunc(m_ptr, pResource, ref pDesc, ref ppRTView));
 }
コード例 #2
0
 public void GetDesc(ref D3D11_RENDER_TARGET_VIEW_DESC pDesc)
 {
     if (m_GetDescFunc == null)
     {
         var fp = GetFunctionPointer(8);
         m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
     }
     m_GetDescFunc(m_ptr, ref pDesc);
 }