| 2867 | } |
| 2868 | |
| 2869 | void CDX11VideoProcessor::UpdateTexures() |
| 2870 | { |
| 2871 | if (!m_srcWidth || !m_srcHeight) { |
| 2872 | return; |
| 2873 | } |
| 2874 | |
| 2875 | // TODO: try making w and h a multiple of 128. |
| 2876 | HRESULT hr = S_OK; |
| 2877 | |
| 2878 | if (m_D3D11VP.IsReady()) { |
| 2879 | if (m_bVPScaling) { |
| 2880 | CSize texsize = m_videoRect.Size(); |
| 2881 | hr = m_TexConvertOutput.CheckCreate(m_pDevice, m_D3D11OutputFmt, texsize.cx, texsize.cy, Tex2D_DefaultShaderRTarget); |
| 2882 | if (FAILED(hr)) { |
| 2883 | hr = m_TexConvertOutput.CheckCreate(m_pDevice, m_D3D11OutputFmt, m_srcRectWidth, m_srcRectHeight, Tex2D_DefaultShaderRTarget); |
| 2884 | } |
| 2885 | } else { |
| 2886 | hr = m_TexConvertOutput.CheckCreate(m_pDevice, m_D3D11OutputFmt, m_srcRectWidth, m_srcRectHeight, Tex2D_DefaultShaderRTarget); |
| 2887 | } |
| 2888 | } |
| 2889 | else { |
| 2890 | hr = m_TexConvertOutput.CheckCreate(m_pDevice, m_InternalTexFmt, m_srcRectWidth, m_srcRectHeight, Tex2D_DefaultShaderRTarget); |
| 2891 | } |
| 2892 | } |
| 2893 | |
| 2894 | void CDX11VideoProcessor::UpdatePostScaleTexures() |
| 2895 | { |
nothing calls this directly
no test coverage detected