Getting started with OpenXR
Before we dive into how our application code is structured, let’s talk about some important OpenXR concepts:
XrInstance
: This is the starting point for an OpenXR application. It represents the application’s connection to an OpenXR runtime. It is the first object you create and the last thing you destroy.XrSystemId
: After creating an instance, the application queries for a system ID, which represents a specific device or group of devices, such as a VR headset.XrViewConfigurationType
: This is used to select a view configuration that the application will use to display images. Different configurations can represent different display setups, such as monoscopic, stereoscopic, and so on.XrSession
: Once the instance is set up and the system ID and view configuration are determined, a session is created. A session represents the application’s interaction with a device. The session manages the life cycle, rendering parameters...