Inherits XR::Object.
|  | 
|  | AZ_CLASS_ALLOCATOR (Instance, AZ::SystemAllocator) | 
|  | 
|  | AZ_RTTI (Instance, "{1C457924-56A4-444F-BC72-4D31A097BA70}") | 
|  | 
| AZ::RHI::ResultCode | Init (AZ::RHI::ValidationMode validationMode) | 
|  | 
| virtual AZ::u32 | GetNumPhysicalDevices () const =0 | 
|  | Get number of physical devices for XR. 
 | 
|  | 
| virtual AZ::RHI::ResultCode | GetXRPhysicalDevice (AZ::RHI::XRPhysicalDeviceDescriptor *physicalDeviceDescriptor, int32_t index)=0 | 
|  | API to retrieve the native physical device for a specific index. 
 | 
|  | 
|  | AZ_RTTI (Object, "{74FCA8BF-CBDA-43EB-A378-89F752ED2FCA}") | 
|  | 
| void | SetName (const AZ::Name &name) | 
|  | Sets the name of the object. 
 | 
|  | 
| const AZ::Name & | GetName () const | 
|  | Returns the name set on the object by SetName. 
 | 
|  | 
|  | 
| AZ::RHI::ValidationMode | m_validationMode = AZ::RHI::ValidationMode::Disabled | 
|  | 
◆ Init()
      
        
          | AZ::RHI::ResultCode XR::Instance::Init | ( | AZ::RHI::ValidationMode | validationMode | ) |  | 
      
 
Init the back-end instance. It is responsible for figuring out supported layers and extensions and based on that a xr instance is created. It also has logging support based on validation mode. 
 
 
The documentation for this class was generated from the following file:
- Gems/XR/Code/Include/XR/XRInstance.h