Skip to content

Commit 6ea7133

Browse files
committed
OpenXR SDK 1.0.19 (2021-08-24)
This release features a number of new or updated vendor extensions, as well as some minor cleanups and bug fixes in the SDK. - Registry - Add XR_SESSION_NOT_FOCUSED as a possible success return code to xrApplyHapticFeedback and xrStopHapticFeedback. (internal MR 2106, internal issue 1270) - Add new XR_FB_hand_tracking_mesh vendor extension. (internal MR 2089) - Add new XR_FB_hand_tracking_capsules vendor extension. (internal MR 2089) - Add new XR_FB_hand_tracking_aim vendor extension. (internal MR 2089) - Add version 1 of new XR_FB_space_warp vendor extension. (internal MR 2115) - Register new Author ID for Almalence. (OpenXR-Docs PR 92, OpenXR-Docs PR 93) - Update to version 2 of XR_VALVE_analog_threshold. (internal MR 2113) - SDK - scripts: Some typing annotations and type-related cleanup found by using type- aware Python editors. (internal MR 2100) - xr_linear.h: Fix bug in XrVector3f_Cross (internal MR 2111)
1 parent 7ce2ba8 commit 6ea7133

21 files changed

+467
-183
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
version: 1.0.18.{build}
5+
version: 1.0.19.{build}
66
image: Visual Studio 2017
77

88

CHANGELOG.SDK.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,36 @@ along with any public pull requests that have been accepted.
1919
In this repository in particular, since it is primarily software,
2020
pull requests may be integrated as they are accepted even between periodic updates.
2121

22+
## OpenXR SDK 1.0.19 (2021-08-24)
23+
24+
This release features a number of new or updated vendor extensions, as well as
25+
some minor cleanups and bug fixes in the SDK.
26+
27+
- Registry
28+
- Add `XR_SESSION_NOT_FOCUSED` as a possible success return code to
29+
`xrApplyHapticFeedback` and `xrStopHapticFeedback`.
30+
([internal MR 2106](https://gitlab.khronos.org/openxr/openxr/merge_requests/2106),
31+
[internal issue 1270](https://gitlab.khronos.org/openxr/openxr/issues/1270))
32+
- Add new `XR_FB_hand_tracking_mesh` vendor extension.
33+
([internal MR 2089](https://gitlab.khronos.org/openxr/openxr/merge_requests/2089))
34+
- Add new `XR_FB_hand_tracking_capsules` vendor extension.
35+
([internal MR 2089](https://gitlab.khronos.org/openxr/openxr/merge_requests/2089))
36+
- Add new `XR_FB_hand_tracking_aim` vendor extension.
37+
([internal MR 2089](https://gitlab.khronos.org/openxr/openxr/merge_requests/2089))
38+
- Add version 1 of new `XR_FB_space_warp` vendor extension.
39+
([internal MR 2115](https://gitlab.khronos.org/openxr/openxr/merge_requests/2115))
40+
- Register new Author ID for Almalence.
41+
([OpenXR-Docs PR 92](https://github.com/KhronosGroup/OpenXR-Docs/pull/92),
42+
[OpenXR-Docs PR 93](https://github.com/KhronosGroup/OpenXR-Docs/pull/93))
43+
- Update to version 2 of `XR_VALVE_analog_threshold`.
44+
([internal MR 2113](https://gitlab.khronos.org/openxr/openxr/merge_requests/2113))
45+
- SDK
46+
- scripts: Some typing annotations and type-related cleanup found by using type-
47+
aware Python editors.
48+
([internal MR 2100](https://gitlab.khronos.org/openxr/openxr/merge_requests/2100))
49+
- `xr_linear.h`: Fix bug in `XrVector3f_Cross`
50+
([internal MR 2111](https://gitlab.khronos.org/openxr/openxr/merge_requests/2111))
51+
2252
## OpenXR SDK 1.0.18 (2021-07-30)
2353

2454
This release mostly adds new extensions. It also includes some fixes to the

specification/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ifneq (,$(strip $(VERY_STRICT)))
4444
ASCIIDOC := $(ASCIIDOC) --failure-level WARN
4545
endif
4646

47-
SPECREVISION = 1.0.18
47+
SPECREVISION = 1.0.19
4848
REVISION_COMPONENTS = $(subst ., ,$(SPECREVISION))
4949
MAJORMINORVER = $(word 1,$(REVISION_COMPONENTS)).$(word 2,$(REVISION_COMPONENTS))
5050

specification/registry/xr.xml

Lines changed: 160 additions & 17 deletions
Large diffs are not rendered by default.

specification/scripts/cgenerator.py

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@
1010

1111
import os
1212
import re
13-
from generator import (GeneratorOptions, OutputGenerator, noneStr,
14-
regSortFeatures, write)
13+
14+
from generator import (GeneratorOptions,
15+
MissingGeneratorOptionsConventionsError,
16+
MissingGeneratorOptionsError, MissingRegistryError,
17+
OutputGenerator, noneStr, write)
1518

1619

1720
class CGeneratorOptions(GeneratorOptions):
@@ -156,10 +159,12 @@ def __init__(self, *args, **kwargs):
156159

157160
def beginFile(self, genOpts):
158161
OutputGenerator.beginFile(self, genOpts)
162+
if self.genOpts is None:
163+
raise MissingGeneratorOptionsError()
159164
# C-specific
160165
#
161166
# Multiple inclusion protection & C++ wrappers.
162-
if genOpts.protectFile and self.genOpts.filename:
167+
if self.genOpts.protectFile and self.genOpts.filename:
163168
headerSym = re.sub(r'\.h', '_h_',
164169
os.path.basename(self.genOpts.filename)).upper()
165170
write('#ifndef', headerSym, file=self.outFile)
@@ -181,6 +186,8 @@ def beginFile(self, genOpts):
181186
def endFile(self):
182187
# C-specific
183188
# Finish C++ wrapper and multiple inclusion protection
189+
if self.genOpts is None:
190+
raise MissingGeneratorOptionsError()
184191
self.newline()
185192
write('#ifdef __cplusplus', file=self.outFile)
186193
write('}', file=self.outFile)
@@ -214,7 +221,11 @@ def endFeature(self):
214221
# C-specific
215222
if self.emit:
216223
if self.feature_not_empty:
217-
is_core = self.featureName.startswith(self.conventions.api_prefix + "VERSION_")
224+
if self.genOpts is None:
225+
raise MissingGeneratorOptionsError()
226+
if self.genOpts.conventions is None:
227+
raise MissingGeneratorOptionsConventionsError()
228+
is_core = self.featureName and self.featureName.startswith(self.conventions.api_prefix + "VERSION_")
218229
if self.genOpts.conventions.writeFeature(self.featureExtraProtect, self.genOpts.filename):
219230
self.newline()
220231
if self.genOpts.protectFeature:
@@ -292,6 +303,8 @@ def genType(self, typeinfo, name, alias):
292303
# special-purpose generator.
293304
self.genStruct(typeinfo, name, alias)
294305
else:
306+
if self.genOpts is None:
307+
raise MissingGeneratorOptionsError()
295308
# OpenXR: this section was not under 'else:' previously, just fell through
296309
if alias:
297310
# If the type is an alias, just emit a typedef declaration
@@ -338,6 +351,8 @@ def genProtectString(self, protect_str):
338351

339352
def typeMayAlias(self, typeName):
340353
if not self.may_alias:
354+
if self.registry is None:
355+
raise MissingRegistryError()
341356
# First time we've asked if a type may alias.
342357
# So, let's populate the set of all names of types that may.
343358

@@ -384,7 +399,7 @@ def genStruct(self, typeinfo, typeName, alias):
384399
# This is an OpenXR-specific alternative where aliasing refers
385400
# to an inheritance hierarchy of types rather than C-level type
386401
# aliases.
387-
if self.genOpts.genAliasMacro and self.typeMayAlias(typeName):
402+
if self.genOpts and self.genOpts.genAliasMacro and self.typeMayAlias(typeName):
388403
body += ' ' + self.genOpts.aliasMacro
389404

390405
body += ' ' + typeName + ' {\n'
@@ -422,6 +437,8 @@ def genGroup(self, groupinfo, groupName, alias=None):
422437
body = 'typedef ' + alias + ' ' + groupName + ';\n'
423438
self.appendSection(section, body)
424439
else:
440+
if self.genOpts is None:
441+
raise MissingGeneratorOptionsError()
425442
(section, body) = self.buildEnumCDecl(self.genOpts.genEnumBeginEndRange, groupinfo, groupName)
426443
self.appendSection(section, "\n" + body)
427444

@@ -443,6 +460,8 @@ def genCmd(self, cmdinfo, name, alias):
443460
# prefix = '// ' + name + ' is an alias of command ' + alias + '\n'
444461
# else:
445462
# prefix = ''
463+
if self.genOpts is None:
464+
raise MissingGeneratorOptionsError()
446465

447466
prefix = ''
448467
decls = self.makeCDecls(cmdinfo.elem)

specification/scripts/check_spec_links.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
EXTRA_DEFINES = ('XRAPI_ATTR', 'XRAPI_CALL', 'XRAPI_PTR', 'XR_NO_STDINT_H')
2626

2727
# These are marked with the code: macro
28-
SYSTEM_TYPES = set(('void', 'char', 'float', 'size_t', 'uintptr_t',
28+
SYSTEM_TYPES = set(('void', 'char', 'float', 'size_t',
29+
'intptr_t', 'uintptr_t',
2930
'int8_t', 'uint8_t',
30-
'uint16_t',
31+
'int16_t', 'uint16_t',
3132
'int32_t', 'uint32_t',
3233
'int64_t', 'uint64_t'))
3334

0 commit comments

Comments
 (0)