37 lines
1.4 KiB
C++
37 lines
1.4 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/Object.h"
|
|
#include "Engine/RendererSettings.h"
|
|
#include "OpenXRHMDSettings.generated.h"
|
|
|
|
/**
|
|
* Implements the settings for the OpenXR HMD plugin.
|
|
*/
|
|
UCLASS(config = Game, defaultconfig)
|
|
class OPENXRHMD_API UOpenXRHMDSettings : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
public:
|
|
/** Enables foveation provided by the XR_FB_foveation OpenXR extension. */
|
|
UPROPERTY(config, EditAnywhere, Category = "Foveation", meta = (
|
|
ToolTip = "Enables foveation provided by the XR_FB_foveation OpenXR extension. Requires support for hardware variable rate shading.",
|
|
DisplayName = "Enable XR_FB_foveation extension"))
|
|
bool bIsFBFoveationEnabled = false;
|
|
|
|
/** Enable support for OpenXR 1.0. */
|
|
UPROPERTY(config, EditAnywhere, Category = "OpenXR Versions", meta = (
|
|
ToolTip = "Enable support for OpenXR 1.0. If multiple versions are supported by the current OpenXR Runtime the latest version will be used.",
|
|
DisplayName = "Enable OpenXR 1.0"))
|
|
bool bIsOpenXR1_0Enabled = true;
|
|
|
|
/** Enable support for OpenXR 1.1. */
|
|
UPROPERTY(config, EditAnywhere, Category = "OpenXR Versions", meta = (
|
|
ToolTip = "Enable support for OpenXR 1.1. If multiple versions are supported by the current OpenXR Runtime the latest version will be used.",
|
|
DisplayName = "Enable OpenXR 1.1"))
|
|
bool bIsOpenXR1_1Enabled = true;
|
|
};
|