Class VivePassthrough
Inheritance
Object
ScriptableObject
OpenXRFeature
VivePassthrough
Assembly: VIVE.OpenXR.dll
Syntax
public class VivePassthrough : OpenXRFeature
Fields
featureId
The feature id string. This is used to give the feature a well known id for reference.
Declaration
public const string featureId = "vive.openxr.feature.passthrough"
Field Value
kOpenxrExtensionStrings
Declaration
public const string kOpenxrExtensionStrings = "XR_HTC_passthrough XR_HTC_passthrough_configuration"
Field Value
Properties
PassthroughList
Declaration
public List<XrPassthroughHTC> PassthroughList { get; }
Property Value
XrInstanceCreated
The XR instance is created or not.
Declaration
public bool XrInstanceCreated { get; }
Property Value
XrSessionCreated
The XR session is created or not.
Declaration
public bool XrSessionCreated { get; }
Property Value
XrSessionCurrentState
The current XR session state.
Declaration
public XrSessionState XrSessionCurrentState { get; }
Property Value
XrSessionEnding
The XR session is ending or not.
Declaration
public bool XrSessionEnding { get; }
Property Value
Methods
CreatePassthroughHTC(XrPassthroughCreateInfoHTC, out XrPassthroughHTC, LayerType)
Declaration
public XrResult CreatePassthroughHTC(XrPassthroughCreateInfoHTC createInfo, out XrPassthroughHTC passthrough, LayerType layerType = LayerType.Overlay)
Parameters
Returns
CreatePassthroughHTC(XrPassthroughCreateInfoHTC, out XrPassthroughHTC, LayerType, uint, OnPassthroughSessionDestroyDelegate)
Declaration
public XrResult CreatePassthroughHTC(XrPassthroughCreateInfoHTC createInfo, out XrPassthroughHTC passthrough, LayerType layerType, uint compositionDepth, VivePassthrough.OnPassthroughSessionDestroyDelegate onDestroy)
Parameters
Returns
CreatePassthroughHTC(XrPassthroughCreateInfoHTC, out XrPassthroughHTC, LayerType, OnPassthroughSessionDestroyDelegate)
Declaration
public XrResult CreatePassthroughHTC(XrPassthroughCreateInfoHTC createInfo, out XrPassthroughHTC passthrough, LayerType layerType, VivePassthrough.OnPassthroughSessionDestroyDelegate onDestroy = null)
Parameters
Returns
DestroyPassthroughHTC(XrPassthroughHTC)
Declaration
public XrResult DestroyPassthroughHTC(XrPassthroughHTC passthrough)
Parameters
Returns
EnumeratePassthroughImageRatesHTC(uint, ref uint, XrPassthroughConfigurationImageRateHTC[])
Declaration
public XrResult EnumeratePassthroughImageRatesHTC(uint imageRateCapacityInput, ref uint imageRateCountOutput, XrPassthroughConfigurationImageRateHTC[] imageRates)
Parameters
Returns
GetPassthroughConfigurationHTC(IntPtr)
Declaration
public XrResult GetPassthroughConfigurationHTC(IntPtr config)
Parameters
Type |
Name |
Description |
IntPtr |
config |
|
Returns
GetSystemProperties(ref XrSystemProperties)
Declaration
public XrResult GetSystemProperties(ref XrSystemProperties properties)
Parameters
Returns
GetTrackingSpace()
According to XRInputSubsystem's tracking origin mode, return the corresponding XrSpace.
Declaration
public XrSpace GetTrackingSpace()
Returns
GetXrSpaceFromSpaceType(ProjectedPassthroughSpaceType)
Helper function to get XrSpace from space type.
Declaration
public XrSpace GetXrSpaceFromSpaceType(ProjectedPassthroughSpaceType spaceType)
Parameters
Returns
OnInstanceCreate(ulong)
Declaration
protected override bool OnInstanceCreate(ulong xrInstance)
Parameters
Type |
Name |
Description |
ulong |
xrInstance |
|
Returns
Overrides
OnInstanceDestroy(ulong)
Declaration
protected override void OnInstanceDestroy(ulong xrInstance)
Parameters
Type |
Name |
Description |
ulong |
xrInstance |
|
Overrides
OnSessionBegin(ulong)
Declaration
protected override void OnSessionBegin(ulong xrSession)
Parameters
Type |
Name |
Description |
ulong |
xrSession |
|
Overrides
OnSessionCreate(ulong)
Declaration
protected override void OnSessionCreate(ulong xrSession)
Parameters
Type |
Name |
Description |
ulong |
xrSession |
|
Overrides
OnSessionDestroy(ulong)
Declaration
protected override void OnSessionDestroy(ulong xrSession)
Parameters
Type |
Name |
Description |
ulong |
xrSession |
|
Overrides
OnSessionEnd(ulong)
Declaration
protected override void OnSessionEnd(ulong xrSession)
Parameters
Type |
Name |
Description |
ulong |
xrSession |
|
Overrides
OnSessionStateChange(int, int)
Declaration
protected override void OnSessionStateChange(int oldState, int newState)
Parameters
Type |
Name |
Description |
int |
oldState |
|
int |
newState |
|
Overrides
OnSystemChange(ulong)
Declaration
protected override void OnSystemChange(ulong xrSystem)
Parameters
Type |
Name |
Description |
ulong |
xrSystem |
|
Overrides
SetPassthroughConfigurationHTC(IntPtr)
Declaration
public XrResult SetPassthroughConfigurationHTC(IntPtr config)
Parameters
Type |
Name |
Description |
IntPtr |
config |
|
Returns
SupportsImageQuality()
Declaration
public bool SupportsImageQuality()
Returns
SupportsImageRate()
Declaration
public bool SupportsImageRate()
Returns