public int CreateTexture1D(ref D3D11_TEXTURE1D_DESC pDesc, ref D3D11_SUBRESOURCE_DATA pInitialData, ref IntPtr ppTexture1D) { if (m_CreateTexture1DFunc == null) { var fp = GetFunctionPointer(4); m_CreateTexture1DFunc = (CreateTexture1DFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateTexture1DFunc)); } return(m_CreateTexture1DFunc(m_ptr, ref pDesc, ref pInitialData, ref ppTexture1D)); }
public void GetDesc(ref D3D11_TEXTURE1D_DESC pDesc) { if (m_GetDescFunc == null) { var fp = GetFunctionPointer(10); m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc)); } m_GetDescFunc(m_ptr, ref pDesc); }