-------------------------------------------------------------------------------------- User sets the resource to be captured from --------------------------------------------------------------------------------------
| 68 | // User sets the resource to be captured from |
| 69 | //-------------------------------------------------------------------------------------- |
| 70 | void MagnifyTool::SetSourceResources( ID3D11Resource* pSourceRTResource, DXGI_FORMAT RTFormat, |
| 71 | int nWidth, int nHeight, int nSamples ) |
| 72 | { |
| 73 | assert( NULL != pSourceRTResource ); |
| 74 | |
| 75 | m_pSourceRTResource = pSourceRTResource; |
| 76 | m_RTFormat = RTFormat; |
| 77 | m_nWidth = nWidth; |
| 78 | m_nHeight = nHeight; |
| 79 | m_nSamples = nSamples; |
| 80 | |
| 81 | if (NULL != pSourceRTResource) |
| 82 | { |
| 83 | m_Magnify.SetSourceResource( m_pSourceRTResource, m_RTFormat, m_nWidth, m_nHeight, m_nSamples ); |
| 84 | } |
| 85 | |
| 86 | EnableTool( true ); |
| 87 | EnableUI( true ); |
| 88 | } |
| 89 | |
| 90 | |
| 91 | //-------------------------------------------------------------------------------------- |
no test coverage detected