| 2892 | } |
| 2893 | |
| 2894 | void CDX11VideoProcessor::UpdatePostScaleTexures() |
| 2895 | { |
| 2896 | const bool needDither = |
| 2897 | (m_SwapChainFmt == DXGI_FORMAT_B8G8R8A8_UNORM && m_InternalTexFmt != DXGI_FORMAT_B8G8R8A8_UNORM |
| 2898 | || m_SwapChainFmt == DXGI_FORMAT_R10G10B10A2_UNORM && m_InternalTexFmt == DXGI_FORMAT_R16G16B16A16_FLOAT); |
| 2899 | |
| 2900 | m_bFinalPass = (m_bUseDither && needDither && m_TexDither.pTexture); |
| 2901 | if (m_bFinalPass) { |
| 2902 | m_pPSFinalPass.Release(); |
| 2903 | m_bFinalPass = SUCCEEDED(CreatePShaderFromResource( |
| 2904 | &m_pPSFinalPass, |
| 2905 | (m_SwapChainFmt == DXGI_FORMAT_R10G10B10A2_UNORM) ? IDF_PS_11_FINAL_PASS_10 : IDF_PS_11_FINAL_PASS |
| 2906 | )); |
| 2907 | } |
| 2908 | |
| 2909 | const UINT numPostScaleSteps = GetPostScaleSteps(); |
| 2910 | HRESULT hr = m_TexsPostScale.CheckCreate(m_pDevice, m_InternalTexFmt, m_windowRect.Width(), m_windowRect.Height(), numPostScaleSteps); |
| 2911 | //UpdateStatsPostProc(); |
| 2912 | } |
| 2913 | |
| 2914 | void CDX11VideoProcessor::UpdateUpscalingShaders() |
| 2915 | { |
nothing calls this directly
no test coverage detected