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

Method UpdateTexParams

Source/DX9VideoProcessor.cpp:959–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957}
958
959void CDX9VideoProcessor::UpdateTexParams(int cdepth)
960{
961 switch (m_iTexFormat) {
962 case TEXFMT_AUTOINT:
963 m_InternalTexFmt = (cdepth > 8) ? D3DFMT_A2R10G10B10 : D3DFMT_X8R8G8B8;
964 break;
965 case TEXFMT_8INT: m_InternalTexFmt = D3DFMT_X8R8G8B8; break;
966 case TEXFMT_10INT: m_InternalTexFmt = D3DFMT_A2R10G10B10; break;
967 case TEXFMT_16FLOAT: m_InternalTexFmt = D3DFMT_A16B16G16R16F; break;
968 default:
969 ASSERT(FALSE);
970 }
971}
972
973void CDX9VideoProcessor::UpdateRenderRect()
974{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected