Skip to content

Commit

Permalink
Update for OpenXR 1.1.36 on Ubuntu 18 LTS.
Browse files Browse the repository at this point in the history
Get docstrings from OpenXR 1.1 web pages.
  • Loading branch information
cmbruns committed Apr 18, 2024
1 parent 6a5a120 commit 2eb0a3a
Show file tree
Hide file tree
Showing 13 changed files with 1,263 additions and 371 deletions.
2 changes: 1 addition & 1 deletion src/generate/xrg/docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def handle_data(self, data: str) -> None:


def create_docstring(function_name: str) -> str:
url = f"https://registry.khronos.org/OpenXR/specs/1.0/man/html/{function_name}.html"
url = f"https://registry.khronos.org/OpenXR/specs/1.1/man/html/{function_name}.html"
headers = {"User-Agent": "Mozilla"}
parser = OpenXrDocstringParser(function_name)
request = urllib.request.Request(url, headers=headers)
Expand Down
2 changes: 1 addition & 1 deletion src/xr/api_layer/linux/XrApiLayer_api_dump.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"api_layer": {
"name": "XR_APILAYER_LUNARG_api_dump",
"library_path": "libXrApiLayer_api_dump.so",
"api_version": "1.0",
"api_version": "1.1",
"implementation_version": "1",
"description": "API Layer to record api calls as they occur"
}
Expand Down
2 changes: 1 addition & 1 deletion src/xr/api_layer/linux/XrApiLayer_core_validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"api_layer": {
"name": "XR_APILAYER_LUNARG_core_validation",
"library_path": "libXrApiLayer_core_validation.so",
"api_version": "1.0",
"api_version": "1.1",
"implementation_version": "1",
"description": "API Layer to perform validation of api calls and parameters as they occur"
}
Expand Down
Binary file modified src/xr/api_layer/linux/libXrApiLayer_api_dump.so
Binary file not shown.
Binary file modified src/xr/api_layer/linux/libXrApiLayer_core_validation.so
Binary file not shown.
34 changes: 32 additions & 2 deletions src/xr/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
MAX_LOCALIZED_ACTION_SET_NAME_SIZE = 128
MAX_ACTION_NAME_SIZE = 64
MAX_LOCALIZED_ACTION_NAME_SIZE = 128
VERSION_1_1 = 1
UUID_SIZE = 16
KHR_composition_layer_cube = 1
KHR_composition_layer_cube_SPEC_VERSION = 8
KHR_COMPOSITION_LAYER_CUBE_EXTENSION_NAME = "XR_KHR_composition_layer_cube"
Expand Down Expand Up @@ -57,6 +59,12 @@
KHR_swapchain_usage_input_attachment_bit = 1
KHR_swapchain_usage_input_attachment_bit_SPEC_VERSION = 3
KHR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME = "XR_KHR_swapchain_usage_input_attachment_bit"
KHR_locate_spaces = 1
KHR_locate_spaces_SPEC_VERSION = 1
KHR_LOCATE_SPACES_EXTENSION_NAME = "XR_KHR_locate_spaces"
KHR_maintenance1 = 1
KHR_maintenance1_SPEC_VERSION = 1
KHR_MAINTENANCE1_EXTENSION_NAME = "XR_KHR_maintenance1"
EXT_performance_settings = 1
EXT_performance_settings_SPEC_VERSION = 4
EXT_PERFORMANCE_SETTINGS_EXTENSION_NAME = "XR_EXT_performance_settings"
Expand Down Expand Up @@ -209,7 +217,6 @@
FB_HAND_TRACKING_CAPSULE_POINT_COUNT = HAND_TRACKING_CAPSULE_POINT_COUNT_FB
FB_HAND_TRACKING_CAPSULE_COUNT = HAND_TRACKING_CAPSULE_COUNT_FB
FB_spatial_entity = 1
UUID_SIZE_EXT = 16
FB_spatial_entity_SPEC_VERSION = 3
FB_SPATIAL_ENTITY_EXTENSION_NAME = "XR_FB_spatial_entity"
FB_foveation = 1
Expand Down Expand Up @@ -302,7 +309,7 @@
FB_scene_SPEC_VERSION = 4
FB_SCENE_EXTENSION_NAME = "XR_FB_scene"
EXT_palm_pose = 1
EXT_palm_pose_SPEC_VERSION = 2
EXT_palm_pose_SPEC_VERSION = 3
EXT_PALM_POSE_EXTENSION_NAME = "XR_EXT_palm_pose"
ALMALENCE_digital_lens_control = 1
ALMALENCE_digital_lens_control_SPEC_VERSION = 1
Expand Down Expand Up @@ -383,9 +390,13 @@
FB_face_tracking2 = 1
FB_face_tracking2_SPEC_VERSION = 1
FB_FACE_TRACKING2_EXTENSION_NAME = "XR_FB_face_tracking2"
META_environment_depth = 1
META_environment_depth_SPEC_VERSION = 1
META_ENVIRONMENT_DEPTH_EXTENSION_NAME = "XR_META_environment_depth"
EXT_uuid = 1
EXT_uuid_SPEC_VERSION = 1
EXT_UUID_EXTENSION_NAME = "XR_EXT_uuid"
UUID_SIZE_EXT = 16
EXT_hand_interaction = 1
EXT_hand_interaction_SPEC_VERSION = 1
EXT_HAND_INTERACTION_EXTENSION_NAME = "XR_EXT_hand_interaction"
Expand Down Expand Up @@ -423,6 +434,10 @@
OPPO_controller_interaction = 1
OPPO_controller_interaction_SPEC_VERSION = 1
OPPO_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_OPPO_controller_interaction"
EXT_future = 1
EXT_future_SPEC_VERSION = 1
EXT_FUTURE_EXTENSION_NAME = "XR_EXT_future"
NULL_FUTURE_EXT = 0
EXT_user_presence = 1
EXT_user_presence_SPEC_VERSION = 1
EXT_USER_PRESENCE_EXTENSION_NAME = "XR_EXT_user_presence"
Expand Down Expand Up @@ -589,6 +604,7 @@
"EXT_DEBUG_UTILS_EXTENSION_NAME",
"EXT_DPAD_BINDING_EXTENSION_NAME",
"EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME",
"EXT_FUTURE_EXTENSION_NAME",
"EXT_HAND_INTERACTION_EXTENSION_NAME",
"EXT_HAND_JOINTS_MOTION_RANGE_EXTENSION_NAME",
"EXT_HAND_TRACKING_DATA_SOURCE_EXTENSION_NAME",
Expand All @@ -614,6 +630,8 @@
"EXT_dpad_binding_SPEC_VERSION",
"EXT_eye_gaze_interaction",
"EXT_eye_gaze_interaction_SPEC_VERSION",
"EXT_future",
"EXT_future_SPEC_VERSION",
"EXT_hand_interaction",
"EXT_hand_interaction_SPEC_VERSION",
"EXT_hand_joints_motion_range",
Expand Down Expand Up @@ -828,6 +846,8 @@
"KHR_COMPOSITION_LAYER_EQUIRECT2_EXTENSION_NAME",
"KHR_COMPOSITION_LAYER_EQUIRECT_EXTENSION_NAME",
"KHR_LOADER_INIT_EXTENSION_NAME",
"KHR_LOCATE_SPACES_EXTENSION_NAME",
"KHR_MAINTENANCE1_EXTENSION_NAME",
"KHR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME",
"KHR_VISIBILITY_MASK_EXTENSION_NAME",
"KHR_binding_modification",
Expand All @@ -846,6 +866,10 @@
"KHR_composition_layer_equirect_SPEC_VERSION",
"KHR_loader_init",
"KHR_loader_init_SPEC_VERSION",
"KHR_locate_spaces",
"KHR_locate_spaces_SPEC_VERSION",
"KHR_maintenance1",
"KHR_maintenance1_SPEC_VERSION",
"KHR_swapchain_usage_input_attachment_bit",
"KHR_swapchain_usage_input_attachment_bit_SPEC_VERSION",
"KHR_visibility_mask",
Expand Down Expand Up @@ -881,6 +905,7 @@
"MAX_SYSTEM_NAME_SIZE",
"MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META",
"META_AUTOMATIC_LAYER_FILTER_EXTENSION_NAME",
"META_ENVIRONMENT_DEPTH_EXTENSION_NAME",
"META_FOVEATION_EYE_TRACKED_EXTENSION_NAME",
"META_HEADSET_ID_EXTENSION_NAME",
"META_LOCAL_DIMMING_EXTENSION_NAME",
Expand All @@ -893,6 +918,8 @@
"META_VIRTUAL_KEYBOARD_EXTENSION_NAME",
"META_automatic_layer_filter",
"META_automatic_layer_filter_SPEC_VERSION",
"META_environment_depth",
"META_environment_depth_SPEC_VERSION",
"META_foveation_eye_tracked",
"META_foveation_eye_tracked_SPEC_VERSION",
"META_headset_id",
Expand Down Expand Up @@ -983,6 +1010,7 @@
"MSFT_unbounded_reference_space_SPEC_VERSION",
"NO_DURATION",
"NULL_CONTROLLER_MODEL_KEY_MSFT",
"NULL_FUTURE_EXT",
"NULL_HANDLE",
"NULL_PATH",
"NULL_RENDER_MODEL_KEY_FB",
Expand Down Expand Up @@ -1051,6 +1079,7 @@
"ULTRALEAP_HAND_TRACKING_FOREARM_EXTENSION_NAME",
"ULTRALEAP_hand_tracking_forearm",
"ULTRALEAP_hand_tracking_forearm_SPEC_VERSION",
"UUID_SIZE",
"UUID_SIZE_EXT",
"VALVE_ANALOG_THRESHOLD_EXTENSION_NAME",
"VALVE_analog_threshold",
Expand All @@ -1077,6 +1106,7 @@
"VARJO_xr4_controller_interaction",
"VARJO_xr4_controller_interaction_SPEC_VERSION",
"VERSION_1_0",
"VERSION_1_1",
"VIEW_STATE_ORIENTATION_TRACKED_BIT",
"VIEW_STATE_ORIENTATION_VALID_BIT",
"VIEW_STATE_POSITION_TRACKED_BIT",
Expand Down
47 changes: 46 additions & 1 deletion src/xr/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ class Result(EnumBase):
ERROR_LOCALIZED_NAME_INVALID = -49
ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING = -50
ERROR_RUNTIME_UNAVAILABLE = -51
ERROR_EXTENSION_DEPENDENCY_NOT_ENABLED = -1000710001
ERROR_PERMISSION_INSUFFICIENT = -1000710000
ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR = -1000003000
ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR = -1000003001
ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT = -1000039001
Expand Down Expand Up @@ -154,10 +156,15 @@ class Result(EnumBase):
ERROR_SPACE_NETWORK_REQUEST_FAILED_FB = -1000169003
ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB = -1000169004
ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META = -1000266000
ENVIRONMENT_DEPTH_NOT_AVAILABLE_META = 1000291000
ERROR_HINT_ALREADY_SET_QCOM = -1000306000
ERROR_NOT_AN_ANCHOR_HTC = -1000319000
ERROR_SPACE_NOT_LOCATABLE_EXT = -1000429000
ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT = -1000429001
ERROR_FUTURE_PENDING_EXT = -1000469001
ERROR_FUTURE_INVALID_EXT = -1000469002
ERROR_EXTENSION_DEPENDENCY_NOT_ENABLED_KHR = -1000710001
ERROR_PERMISSION_INSUFFICIENT_KHR = -1000710000


class StructureType(EnumBase):
Expand Down Expand Up @@ -211,6 +218,9 @@ class StructureType(EnumBase):
ACTIONS_SYNC_INFO = 61
BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO = 62
INPUT_SOURCE_LOCALIZED_NAME_GET_INFO = 63
SPACES_LOCATE_INFO = 1000471000
SPACE_LOCATIONS = 1000471001
SPACE_VELOCITIES = 1000471002
COMPOSITION_LAYER_CUBE_KHR = 1000006000
INSTANCE_CREATE_INFO_ANDROID_KHR = 1000008000
COMPOSITION_LAYER_DEPTH_INFO_KHR = 1000010000
Expand Down Expand Up @@ -476,6 +486,14 @@ class StructureType(EnumBase):
FACE_TRACKER_CREATE_INFO2_FB = 1000287014
FACE_EXPRESSION_INFO2_FB = 1000287015
FACE_EXPRESSION_WEIGHTS2_FB = 1000287016
ENVIRONMENT_DEPTH_PROVIDER_CREATE_INFO_META = 1000291000
ENVIRONMENT_DEPTH_SWAPCHAIN_CREATE_INFO_META = 1000291001
ENVIRONMENT_DEPTH_SWAPCHAIN_STATE_META = 1000291002
ENVIRONMENT_DEPTH_IMAGE_ACQUIRE_INFO_META = 1000291003
ENVIRONMENT_DEPTH_IMAGE_VIEW_META = 1000291004
ENVIRONMENT_DEPTH_IMAGE_META = 1000291005
ENVIRONMENT_DEPTH_HAND_REMOVAL_SET_INFO_META = 1000291006
SYSTEM_ENVIRONMENT_DEPTH_PROPERTIES_META = 1000291007
PASSTHROUGH_CREATE_INFO_HTC = 1000317001
PASSTHROUGH_COLOR_HTC = 1000317002
PASSTHROUGH_MESH_TRANSFORM_INFO_HTC = 1000317003
Expand All @@ -497,12 +515,19 @@ class StructureType(EnumBase):
PLANE_DETECTOR_LOCATION_EXT = 1000429005
PLANE_DETECTOR_POLYGON_BUFFER_EXT = 1000429006
SYSTEM_PLANE_DETECTION_PROPERTIES_EXT = 1000429007
FUTURE_CANCEL_INFO_EXT = 1000469000
FUTURE_POLL_INFO_EXT = 1000469001
FUTURE_COMPLETION_EXT = 1000469002
FUTURE_POLL_RESULT_EXT = 1000469003
EVENT_DATA_USER_PRESENCE_CHANGED_EXT = 1000470000
SYSTEM_USER_PRESENCE_PROPERTIES_EXT = 1000470001
GRAPHICS_BINDING_VULKAN2_KHR = 1000025000
SWAPCHAIN_IMAGE_VULKAN2_KHR = 1000025001
GRAPHICS_REQUIREMENTS_VULKAN2_KHR = 1000025002
DEVICE_PCM_SAMPLE_RATE_GET_INFO_FB = 1000209002
SPACES_LOCATE_INFO_KHR = 1000471000
SPACE_LOCATIONS_KHR = 1000471001
SPACE_VELOCITIES_KHR = 1000471002


class FormFactor(EnumBase):
Expand All @@ -513,8 +538,9 @@ class FormFactor(EnumBase):
class ViewConfigurationType(EnumBase):
PRIMARY_MONO = 1
PRIMARY_STEREO = 2
PRIMARY_QUAD_VARJO = 1000037000
PRIMARY_STEREO_WITH_FOVEATED_INSET = 1000037000
SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT = 1000054000
PRIMARY_QUAD_VARJO = 1000037000


class EnvironmentBlendMode(EnumBase):
Expand All @@ -527,6 +553,7 @@ class ReferenceSpaceType(EnumBase):
VIEW = 1
LOCAL = 2
STAGE = 3
LOCAL_FLOOR = 1000426000
UNBOUNDED_MSFT = 1000038000
COMBINED_EYE_VARJO = 1000121000
LOCALIZATION_MAP_ML = 1000139000
Expand Down Expand Up @@ -589,6 +616,8 @@ class ObjectType(EnumBase):
SPACE_USER_FB = 1000241000
PASSTHROUGH_COLOR_LUT_META = 1000266000
FACE_TRACKER2_FB = 1000287012
ENVIRONMENT_DEPTH_PROVIDER_META = 1000291000
ENVIRONMENT_DEPTH_SWAPCHAIN_META = 1000291001
PASSTHROUGH_HTC = 1000317000
PLANE_DETECTOR_EXT = 1000429000

Expand Down Expand Up @@ -1384,6 +1413,11 @@ class PlaneDetectionStateEXT(EnumBase):
FATAL = 4


class FutureStateEXT(EnumBase):
PENDING = 1
READY = 2


class HeadsetFitStatusML(EnumBase):
UNKNOWN = 0
NOT_WORN = 1
Expand Down Expand Up @@ -1648,6 +1682,14 @@ class PerformanceMetricsCounterFlagsMETA(FlagBase):
FLOAT_VALUE_VALID_BIT = 0x00000004


class EnvironmentDepthProviderCreateFlagsMETA(FlagBase):
NONE = 0x00000000


class EnvironmentDepthSwapchainCreateFlagsMETA(FlagBase):
NONE = 0x00000000


class FoveationDynamicFlagsHTC(FlagBase):
NONE = 0x00000000
LEVEL_ENABLED_BIT = 0x00000001
Expand Down Expand Up @@ -1688,6 +1730,8 @@ class PlaneDetectorFlagsEXT(FlagBase):
"DigitalLensControlFlagsALMALENCE",
"EnumBase",
"EnvironmentBlendMode",
"EnvironmentDepthProviderCreateFlagsMETA",
"EnvironmentDepthSwapchainCreateFlagsMETA",
"ExternalCameraAttachedToDeviceOCULUS",
"ExternalCameraStatusFlagsOCULUS",
"EyeCalibrationStatusML",
Expand All @@ -1713,6 +1757,7 @@ class PlaneDetectorFlagsEXT(FlagBase):
"FoveationLevelHTC",
"FoveationModeHTC",
"FrameEndInfoFlagsML",
"FutureStateEXT",
"GlobalDimmerFrameEndInfoFlagsML",
"HandEXT",
"HandForearmJointULTRALEAP",
Expand Down
Loading

0 comments on commit 2eb0a3a

Please sign in to comment.