OpenXR-Docs icon indicating copy to clipboard operation
OpenXR-Docs copied to clipboard

Version Number Macros: Incorrectly described as being packed into a 32-bit integer

Open amalon opened this issue 10 months ago • 2 comments

OpenXR 1.1.45, in the section "Version Number Macros" states:

Three version numbers are defined in openxr.h. Each is packed into a 32-bit integer as described in API
Version Number Function-like Macros.

This is referring to XR_CURRENT_API_VERSION, XR_API_VERSION_1_0 and XR_API_VERSION_1_1, all defined using XR_MAKE_VERSION.

However the next section: "API Version Number Function-like Macros section" states:

API Version Numbers are three components, packed into a single 64-bit integer.

and the listed macros including XR_MAKE_VERSION and the description of the XrVersion typedef at the beginning of Chapter 2 clearly describe it packed into 64-bit integers.

Clearly that first sentence above about being "packed into a 32-bit integer" should be "packed into a 64-bit integer".

amalon avatar Feb 25 '25 23:02 amalon

oh hmm, good catch.

rpavlik avatar Feb 28 '25 15:02 rpavlik

An issue (number 2478) has been filed to correspond to this issue in the internal Khronos GitLab (Khronos members only: KHR:openxr/openxr#2478 ), to facilitate working group processes.

This GitHub issue will continue to be the main site of discussion.

rpavlik-bot avatar Mar 05 '25 19:03 rpavlik-bot

Fixed in 1.1.47, thanks for the report!

rpavlik avatar Apr 08 '25 20:04 rpavlik