| 594 | } |
| 595 | |
| 596 | void Update(size_t eyeIdx, gsl::span<const float, 16> projectionMatrix, const xr::System::Session::Frame::Space& space) |
| 597 | { |
| 598 | if (eyeIdx != m_eyeIdx) |
| 599 | { |
| 600 | m_eyeIdx = eyeIdx; |
| 601 | m_eye = XREye::IndexToEye(m_eyeIdx); |
| 602 | } |
| 603 | |
| 604 | std::memcpy(m_projectionMatrix.Value().Data(), projectionMatrix.data(), m_projectionMatrix.Value().ByteLength()); |
| 605 | |
| 606 | XRRigidTransform::Unwrap(m_rigidTransform.Value())->Update(space, false); |
| 607 | } |
| 608 | |
| 609 | private: |
| 610 | size_t m_eyeIdx{}; |
no test coverage detected