MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / UpdatePostScaleTexures

Method UpdatePostScaleTexures

Source/DX11VideoProcessor.cpp:2894–2912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2892}
2893
2894void 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
2914void CDX11VideoProcessor::UpdateUpscalingShaders()
2915{

Callers

nothing calls this directly

Calls 2

ReleaseMethod · 0.45
CheckCreateMethod · 0.45

Tested by

no test coverage detected