[ ] Have you added a backport label (if needed)? For example, the need-backport-* label. After you backport the PR, the label changes to backported-*.
[ ] Have you updated the changelog? Each package has a CHANGELOG.md file.
[ ] Have you updated or added the documentation for your PR? When you add a new feature, change a property name, or change the behavior of a feature, it's best practice to include related documentation changes in the same PR. If you do add documentation, make sure to add the relevant Graphics Docs team member as a reviewer of the PR. If you are not sure which person to add, see the Docs team contacts sheet.
[ ] Have you added a graphic test for your PR (if needed)? When you add a new feature, or discover a bug that tests don't cover, please add a graphic test.
Purpose of this PR
Instead of checking whether the motionVectorRenderTarget is equal to -1, simply copy the 'hasMotionVectorPass' from the engine's XRRenderPass.
Testing status
Confirmed that MotionVector pass executes when expected and is skipped when not expected
Please read the Contributing guide before making a PR.
Checklist for PR maker
need-backport-*
label. After you backport the PR, the label changes tobackported-*
.CHANGELOG.md
file.Purpose of this PR
Instead of checking whether the motionVectorRenderTarget is equal to -1, simply copy the 'hasMotionVectorPass' from the engine's XRRenderPass.
Testing status
Confirmed that MotionVector pass executes when expected and is skipped when not expected
Comments to reviewers
Notes for the reviewers you have assigned.