public void GetDesc(ref D3D11_TEXTURE3D_DESC pDesc) { if (m_GetDescFunc == null) { var fp = GetFunctionPointer(10); m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc)); } m_GetDescFunc(m_ptr, ref pDesc); }
public int CreateTexture3D(ref D3D11_TEXTURE3D_DESC pDesc, ref D3D11_SUBRESOURCE_DATA pInitialData, ref IntPtr ppTexture3D) { if (m_CreateTexture3DFunc == null) { var fp = GetFunctionPointer(6); m_CreateTexture3DFunc = (CreateTexture3DFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateTexture3DFunc)); } return(m_CreateTexture3DFunc(m_ptr, ref pDesc, ref pInitialData, ref ppTexture3D)); }