version 2.5.0
This commit is contained in:
@@ -85,12 +85,12 @@ namespace VIVE.OpenXR
|
||||
private static extern IntPtr intercept_xrGetInstanceProcAddr(IntPtr func);
|
||||
|
||||
[DllImport(ExtLib, EntryPoint = "applyFoveationHTC")]
|
||||
private static extern XrResult applyFoveationHTC(XrFoveationModeHTC mode, UInt32 configCount, XrFoveationConfigurationHTC[] configs, UInt64 flags);
|
||||
private static extern XrResult applyFoveationHTC(Foveation.XrFoveationModeHTC mode, UInt32 configCount, Foveation.XrFoveationConfigurationHTC[] configs, UInt64 flags);
|
||||
|
||||
/// <summary>
|
||||
/// function to apply HTC Foveation
|
||||
/// </summary>
|
||||
public static XrResult ApplyFoveationHTC(XrFoveationModeHTC mode, UInt32 configCount, XrFoveationConfigurationHTC[] configs, UInt64 flags = 0)
|
||||
public static XrResult ApplyFoveationHTC(Foveation.XrFoveationModeHTC mode, UInt32 configCount, Foveation.XrFoveationConfigurationHTC[] configs, UInt64 flags = 0)
|
||||
{
|
||||
//Debug.Log("Unity HTCFoveat:configCount " + configCount);
|
||||
//if (configCount >=2) {
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
// Copyright HTC Corporation All Rights Reserved.
|
||||
|
||||
namespace VIVE.OpenXR.Foveation
|
||||
{
|
||||
#region 12.86. XR_HTC_foveation
|
||||
/// <summary>
|
||||
/// The XrFoveationModeHTC identifies the different foveation modes.
|
||||
/// </summary>
|
||||
public enum XrFoveationModeHTC
|
||||
{
|
||||
XR_FOVEATION_MODE_DISABLE_HTC = 0,
|
||||
XR_FOVEATION_MODE_FIXED_HTC = 1,
|
||||
XR_FOVEATION_MODE_DYNAMIC_HTC = 2,
|
||||
XR_FOVEATION_MODE_CUSTOM_HTC = 3,
|
||||
XR_FOVEATION_MODE_MAX_ENUM_HTC = 0x7FFFFFFF
|
||||
}
|
||||
/// <summary>
|
||||
/// The XrFoveationLevelHTC identifies the pixel density drop level of periphery area.
|
||||
/// </summary>
|
||||
public enum XrFoveationLevelHTC
|
||||
{
|
||||
XR_FOVEATION_LEVEL_NONE_HTC = 0,
|
||||
XR_FOVEATION_LEVEL_LOW_HTC = 1,
|
||||
XR_FOVEATION_LEVEL_MEDIUM_HTC = 2,
|
||||
XR_FOVEATION_LEVEL_HIGH_HTC = 3,
|
||||
XR_FOVEATION_LEVEL_MAX_ENUM_HTC = 0x7FFFFFFF
|
||||
}
|
||||
/// <summary>
|
||||
/// The XrFoveationConfigurationHTC structure contains the custom foveation settings for the corresponding views.
|
||||
/// </summary>
|
||||
public struct XrFoveationConfigurationHTC
|
||||
{
|
||||
public XrFoveationLevelHTC level;
|
||||
public float clearFovDegree;
|
||||
public XrVector2f focalCenterOffset;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6b3c2ad651da4e5498f49d3a26038620
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user