Class XrHandTrackingDataSourceStateEXT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrHandTrackingDataSourceStateEXT>
org.lwjgl.openxr.XrHandTrackingDataSourceStateEXT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrHandTrackingDataSourceStateEXT extends org.lwjgl.system.Struct<XrHandTrackingDataSourceStateEXT> implements org.lwjgl.system.NativeResource
Chains to XrHandJointLocationsEXT to get hand tracking data source state.
Description

XrHandTrackingDataSourceStateEXT is a structure that an application can chain to XrHandJointLocationsEXT::next when calling LocateHandJointsEXT to retrieve the data source of the currently active hand tracking device.

When the returned isActive is XR_FALSE, it indicates the currently active hand tracking device does not support any of the requested data sources. In these cases, the runtime must also return no valid tracking locations for hand joints from this LocateHandJointsEXT function.

If the tracker was not created with XrHandTrackingDataSourceInfoEXT chained to XrHandTrackerCreateInfoEXT::next, then the runtime must return ERROR_VALIDATION_FAILURE, if XrHandTrackingDataSourceStateEXT is passed in the call to LocateHandJointsEXT.

If there is an active hand tracking device that is one of the specified XrHandTrackingDataSourceInfoEXT::requestedDataSources, the runtime must set isActive to TRUE. When the runtime sets isActive to TRUE, the runtime must set dataSource indicate the active data source. The runtime must return a dataSource that is a subset of the XrHandTrackingDataSourceInfoEXT::requestedDataSources when creating the corresponding hand tracker.

Valid Usage (Implicit)
See Also

XrHandJointLocationsEXT, LocateHandJointsEXT

Layout


 struct XrHandTrackingDataSourceStateEXT {
     XrStructureType type();
     void * next();
     XrBool32 isActive();
     XrHandTrackingDataSourceEXT dataSource();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • ISACTIVE

      public static final int ISACTIVE
      The struct member offsets.
    • DATASOURCE

      public static final int DATASOURCE
      The struct member offsets.
  • Constructor Details

    • XrHandTrackingDataSourceStateEXT

      public XrHandTrackingDataSourceStateEXT(ByteBuffer container)
      Creates a XrHandTrackingDataSourceStateEXT instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details