MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_GetFovTextureSize

Function ovr_GetFovTextureSize

ReviveXR/REV_CAPI.cpp:834–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834OVR_PUBLIC_FUNCTION(ovrSizei) ovr_GetFovTextureSize(ovrSession session, ovrEyeType eye, ovrFovPort fov, float pixelsPerDisplayPixel)
835{
836 REV_TRACE(ovr_GetFovTextureSize);
837
838 // TODO: Add support for pixelsPerDisplayPixel
839 ovrSizei size = {
840 (int)(session->PixelsPerTan[eye].x * (fov.LeftTan + fov.RightTan)),
841 (int)(session->PixelsPerTan[eye].y * (fov.UpTan + fov.DownTan)),
842 };
843 return size;
844}
845
846OVR_PUBLIC_FUNCTION(ovrEyeRenderDesc) ovr_GetRenderDesc2(ovrSession session, ovrEyeType eyeType, ovrFovPort fov)
847{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected