Пример #1
0
 public int CreateBuffer(ref D3D11_BUFFER_DESC pDesc, ref D3D11_SUBRESOURCE_DATA pInitialData, ref IntPtr ppBuffer)
 {
     if (m_CreateBufferFunc == null)
     {
         var fp = GetFunctionPointer(3);
         m_CreateBufferFunc = (CreateBufferFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateBufferFunc));
     }
     return(m_CreateBufferFunc(m_ptr, ref pDesc, ref pInitialData, ref ppBuffer));
 }
Пример #2
0
 public void GetDesc(ref D3D11_BUFFER_DESC pDesc)
 {
     if (m_GetDescFunc == null)
     {
         var fp = GetFunctionPointer(10);
         m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
     }
     m_GetDescFunc(m_ptr, ref pDesc);
 }