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

Method UpdateTexParams

Source/DX11VideoProcessor.cpp:1143–1155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1141}
1142
1143void CDX11VideoProcessor::UpdateTexParams(int cdepth)
1144{
1145 switch (m_iTexFormat) {
1146 case TEXFMT_AUTOINT:
1147 m_InternalTexFmt = (cdepth > 8 || m_bVPUseRTXVideoHDR) ? DXGI_FORMAT_R10G10B10A2_UNORM : DXGI_FORMAT_B8G8R8A8_UNORM;
1148 break;
1149 case TEXFMT_8INT: m_InternalTexFmt = DXGI_FORMAT_B8G8R8A8_UNORM; break;
1150 case TEXFMT_10INT: m_InternalTexFmt = DXGI_FORMAT_R10G10B10A2_UNORM; break;
1151 case TEXFMT_16FLOAT: m_InternalTexFmt = DXGI_FORMAT_R16G16B16A16_FLOAT; break;
1152 default:
1153 ASSERT(FALSE);
1154 }
1155}
1156
1157void CDX11VideoProcessor::UpdateRenderRect()
1158{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected