| 2771 | } |
| 2772 | |
| 2773 | HRESULT CDX9VideoProcessor::TextureCopy(IDirect3DTexture9* pTexture) |
| 2774 | { |
| 2775 | HRESULT hr; |
| 2776 | |
| 2777 | D3DSURFACE_DESC desc; |
| 2778 | if (!pTexture || FAILED(pTexture->GetLevelDesc(0, &desc))) { |
| 2779 | return E_FAIL; |
| 2780 | } |
| 2781 | |
| 2782 | float w = (float)desc.Width - 0.5f; |
| 2783 | float h = (float)desc.Height - 0.5f; |
| 2784 | |
| 2785 | MYD3DVERTEX<1> v[] = { |
| 2786 | { {-0.5f, -0.5f, 0.5f, 2.0f}, {{0, 0}} }, |
| 2787 | { { w, -0.5f, 0.5f, 2.0f}, {{1, 0}} }, |
| 2788 | { {-0.5f, h, 0.5f, 2.0f}, {{0, 1}} }, |
| 2789 | { { w, h, 0.5f, 2.0f}, {{1, 1}} }, |
| 2790 | }; |
| 2791 | |
| 2792 | hr = m_pD3DDevEx->SetTexture(0, pTexture); |
| 2793 | |
| 2794 | return TextureBlt(m_pD3DDevEx, v, D3DTEXF_POINT); |
| 2795 | } |
| 2796 | |
| 2797 | |
| 2798 | HRESULT CDX9VideoProcessor::TextureCopyRect( |
nothing calls this directly
no test coverage detected