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)); }
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)); }