Skip to content

Commit a46ea22

Browse files
author
Matthieu Bucchianeri
authored
Update samples/SDK for release 113. (#117)
1 parent ef75946 commit a46ea22

45 files changed

Lines changed: 4133 additions & 79079 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ or choose x64 platform when running on a Windows Desktop PC with the HoloLens 2
2626

2727
# OpenXR preview extensions
2828

29-
The [openxr_preview](https://github.com/microsoft/OpenXR-MixedReality/tree/main/openxr_preview) folder contains a set of [preview header files](https://github.com/microsoft/OpenXR-MixedReality/tree/main/openxr_preview/include/openxr) containing the following OpenXR extensions that are only available [in preview runtime](http://aka.ms/openxr-preview).
29+
The [openxr_preview](https://github.com/microsoft/OpenXR-MixedReality/tree/main/openxr_preview) folder contains an additional
30+
[openxr_msft_preview.h](https://github.com/microsoft/OpenXR-MixedReality/tree/main/openxr_preview/include/openxr/openxr_msft_preview.h) header to offer
31+
the following OpenXR extensions that are only available [in preview runtime](http://aka.ms/openxr-preview).
3032

31-
1. There's no additional preview extensions in latest preview runtime.
33+
1. [XR_EXTX_hand_interaction](https://github.com/microsoft/OpenXR-MixedReality/tree/main/openxr_preview/include/openxr/preview/xr_ext_hand_interaction.h)
34+
2. [XR_MSFTX_scene_marker](https://github.com/microsoft/OpenXR-MixedReality/tree/main/openxr_preview/include/openxr/preview/xr_msft_scene_marker.h)
3235

3336
Please send feedback on preview extensions and samples at [GitHub issues](https://github.com/microsoft/OpenXR-MixedReality/issues).
3437
We are planning to incorporate your feedback and finalize these extensions as vendor extensions (MSFT) or cross-vendor extensions (EXT)

openxr_preview/include/openxr/openxr.h

Lines changed: 1112 additions & 18 deletions
Large diffs are not rendered by default.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#pragma once
2+
3+
////////////////////////////////////////////////////////////////////////////////
4+
// Copyright (C) Microsoft Corporation. All Rights Reserved
5+
6+
#include "preview/xr_ext_hand_interaction.h"
7+
#include "preview/xr_msft_scene_marker.h"
8+
9+
// clang-format off
10+
11+
// Supports XrStructTraits and ValidateStruct
12+
#define XR_LIST_STRUCTURE_TYPES_MSFT_PREVIEW(_) \
13+
XR_LIST_STRUCTURE_TYPES_EXT_hand_interaction(_) \
14+
XR_LIST_STRUCTURE_TYPES_MSFT_scene_marker(_)
15+
16+
// Supports IXrExtensionConfiguration.EnabledExtensions()
17+
#define XR_LIST_EXTENSIONS_MSFT_PREVIEW(_) \
18+
XR_LIST_EXTENSIONS_EXT_hand_interaction(_) \
19+
XR_LIST_EXTENSIONS_MSFT_scene_marker(_)
20+
21+
// Supports xrStructureTypeToString and IsKnownStructType
22+
#define XR_LIST_ENUM_XrStructureType_MSFT_PREVIEW(_) \
23+
XR_LIST_ENUM_XrStructureType_EXT_hand_interaction(_) \
24+
XR_LIST_ENUM_XrStructureType_MSFT_scene_marker(_)
25+
26+
// Supports XrDispatchTable.h
27+
#define XR_LIST_FUNCTIONS_MSFT_PREVIEW(_) \
28+
XR_LIST_FUNCTIONS_MSFT_scene_marker(_)
29+
30+
// clang-format on

openxr_preview/include/openxr/openxr_platform.h

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define OPENXR_PLATFORM_H_ 1
33

44
/*
5-
** Copyright (c) 2017-2022, The Khronos Group Inc.
5+
** Copyright 2017-2022 The Khronos Group Inc.
66
**
77
** SPDX-License-Identifier: Apache-2.0 OR MIT
88
*/
@@ -565,6 +565,30 @@ typedef struct XrAndroidSurfaceSwapchainCreateInfoFB {
565565

566566
#endif /* XR_USE_PLATFORM_ANDROID */
567567

568+
#ifdef XR_USE_PLATFORM_ML
569+
570+
#define XR_ML_compat 1
571+
#define XR_ML_compat_SPEC_VERSION 1
572+
#define XR_ML_COMPAT_EXTENSION_NAME "XR_ML_compat"
573+
typedef struct XrCoordinateSpaceCreateInfoML {
574+
XrStructureType type;
575+
const void* XR_MAY_ALIAS next;
576+
MLCoordinateFrameUID cfuid;
577+
XrPosef poseInCoordinateSpace;
578+
} XrCoordinateSpaceCreateInfoML;
579+
580+
typedef XrResult (XRAPI_PTR *PFN_xrCreateSpaceFromCoordinateFrameUIDML)(XrSession session, const XrCoordinateSpaceCreateInfoML *createInfo, XrSpace* space);
581+
582+
#ifndef XR_NO_PROTOTYPES
583+
#ifdef XR_EXTENSION_PROTOTYPES
584+
XRAPI_ATTR XrResult XRAPI_CALL xrCreateSpaceFromCoordinateFrameUIDML(
585+
XrSession session,
586+
const XrCoordinateSpaceCreateInfoML * createInfo,
587+
XrSpace* space);
588+
#endif /* XR_EXTENSION_PROTOTYPES */
589+
#endif /* !XR_NO_PROTOTYPES */
590+
#endif /* XR_USE_PLATFORM_ML */
591+
568592
#ifdef XR_USE_PLATFORM_WIN32
569593

570594
#define XR_OCULUS_audio_device_guid 1

openxr_preview/include/openxr/openxr_platform_defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ typedef unsigned __int64 uint64_t;
6565
#endif // !defined( XR_NO_STDINT_H )
6666

6767
// XR_PTR_SIZE (in bytes)
68-
#if (defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__) ) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__))
68+
#if (defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__) ) || defined(_M_X64) || defined(__ia64) || defined(_M_IA64) || defined(__aarch64__) || defined(__powerpc64__))
6969
#define XR_PTR_SIZE 8
7070
#else
7171
#define XR_PTR_SIZE 4

0 commit comments

Comments
 (0)