MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / GetResolutionInfo

Method GetResolutionInfo

Rtxpt/Sample.cpp:879–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

877}
878
879std::string Sample::GetResolutionInfo() const
880{
881 if (m_renderTargets == nullptr || m_renderTargets->OutputColor == nullptr)
882 return "uninitialized";
883
884 if (dm::all(m_renderSize == m_displaySize))
885 return std::to_string(m_renderSize.x) + "x" + std::to_string(m_renderSize.y);
886 else
887 return std::to_string(m_renderSize.x) + "x" + std::to_string(m_renderSize.y) + "->" + std::to_string(m_displaySize.x) + "x" + std::to_string(m_displaySize.y);
888}
889
890float Sample::GetAvgTimePerFrame() const
891{

Callers 1

buildUIMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected