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

Method UpdateTexures

Source/DX11VideoProcessor.cpp:2869–2892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2867}
2868
2869void 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
2894void CDX11VideoProcessor::UpdatePostScaleTexures()
2895{

Callers

nothing calls this directly

Calls 3

IsReadyMethod · 0.45
SizeMethod · 0.45
CheckCreateMethod · 0.45

Tested by

no test coverage detected