Home Game Development steam vr – Is there a way to set SteamVR OpenXR to strict mode

steam vr – Is there a way to set SteamVR OpenXR to strict mode

0
steam vr – Is there a way to set SteamVR OpenXR to strict mode

[ad_1]

Background

I’m having an issue where steamVR with an Oculus Quest 2 is being lenient with my use of OpenXR. For example

This is wrong (but works on steamVR)

    XrActionStateFloat actionState = XrActionStateFloat.create();
    XrActionStateGetInfo actionInfo = XrActionStateGetInfo.create();
    actionInfo.action(obtainActionHandle(action));

    XR10.xrGetActionStateFloat(xrSessionHandle, actionInfo, actionState);

This is right (I think)

    XrActionStateFloat actionState = XrActionStateFloat.create();
    actionState.type$Default();
    XrActionStateGetInfo actionInfo = XrActionStateGetInfo.create();
    actionInfo.type$Default();
    actionInfo.action(obtainActionHandle(action));

    XR10.xrGetActionStateFloat(xrSessionHandle, actionInfo, actionState);

SteamVR is I think assuming these type$Default() calls even if I don’t make them. But other people’s systems are returning -1 XR_ERROR_VALIDATION_FAILURE without them. This helpful behaviour is making debugging these problems hard

Question

Is there any way to switch SteamVR into a strict mode where these calls would aggressively fail?


N.b. the code here is a LWJGL binding for OpenXR

[ad_2]

Previous article Astral Ascent (PS5) Review | PSX Extreme
Next article New roguelike Realm of Ink is Hades by way of Chinese mythology
Hello there! My name is YoleeTeam, and I am thrilled to welcome you to AmazonianGames.com. As the premier destination for all things related to Amazon Games' universe, we are dedicated to providing you with the most exciting and immersive gaming experiences out there. From captivating visuals to exhilarating gameplay, our website is packed with comprehensive insights, updates, and reviews to keep you ahead of the game. Whether you're a seasoned gamer or new to the scene, I am here to guide you through this virtual frontier. If you have any questions or suggestions, feel free to reach out to me at john@yoleesolutions.com. Embark on your Amazon gaming journey today with AmazonianGames.com and let the adventure begin!