MCPcopy Create free account
hub / github.com/carbonengine/trinity / ApplyUpscalingToPerFrameData

Method ApplyUpscalingToPerFrameData

trinity/Eve/EveSpaceScene.cpp:800–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

798}
799
800void EveSpaceScene::ApplyUpscalingToPerFrameData( uint32_t width, uint32_t height, Tr2RenderContext& renderContext )
801{
802 // Vs Data
803 m_perFrameVS.TargetResolution.x = (float)width;
804 m_perFrameVS.TargetResolution.y = (float)height;
805 m_perFrameVS.ViewportSize.x = (float)width;
806 m_perFrameVS.ViewportSize.y = (float)height;
807 // Ps Data
808 m_perFramePS.TargetResolution.x = (float)width;
809 m_perFramePS.TargetResolution.y = (float)height;
810 m_perFramePS.ViewportSize.x = (float)width;
811 m_perFramePS.ViewportSize.y = (float)height;
812 ApplyPerFrameData( renderContext );
813}
814
815void EveSpaceScene::ApplyPerFrameData( Tr2RenderContext& renderContext )
816{

Callers 1

ExecuteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected