Class ViveCompositionLayer
Inheritance
Object
ScriptableObject
OpenXRFeature
ViveCompositionLayer
Assembly: VIVE.OpenXR.dll
Syntax
public class ViveCompositionLayer : OpenXRFeature
Fields
enableAutoFallback
Enable auto fallback or Not.
Declaration
public bool enableAutoFallback
Field Value
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.compositionlayer"
Field Value
kOpenxrExtensionStrings
Declaration
public const string kOpenxrExtensionStrings = ""
Field Value
Properties
HeadLockSpace
The XrSpace of head lock space.
Declaration
public XrSpace HeadLockSpace { get; }
Property Value
WorldLockSpaceOriginOnFloor
The XrSpace of world lock space origin on floor.
Declaration
public XrSpace WorldLockSpaceOriginOnFloor { get; }
Property Value
WorldLockSpaceOriginOnHead
The XrSpace of world lock space origin on head.
Declaration
public XrSpace WorldLockSpaceOriginOnHead { 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
CompositionLayer_Destroy(int)
destroy composition layer.
Declaration
public bool CompositionLayer_Destroy(int layerID)
Parameters
Type |
Name |
Description |
int |
layerID |
|
Returns
CompositionLayer_GetFuncAddrs(XrInstance, IntPtr)
get function address of composition layer.
Declaration
public XrResult CompositionLayer_GetFuncAddrs(XrInstance xrInstance, IntPtr xrGetInstanceProcAddrFuncPtr)
Parameters
Returns
CompositionLayer_GetTexture(int, out uint)
Get composition layer texture.
Declaration
public IntPtr CompositionLayer_GetTexture(int layerID, out uint imageIndex)
Parameters
Type |
Name |
Description |
int |
layerID |
|
uint |
imageIndex |
|
Returns
CompositionLayer_Init(uint, uint, GraphicsAPI, bool, bool, out uint, bool)
Declaration
public int CompositionLayer_Init(uint textureWidth, uint textureHeight, GraphicsAPI graphicsAPI, bool isDynamic, bool isProtected, out uint imageCount, bool isExternal = false)
Parameters
Returns
CompositionLayer_ReleaseTexture(int)
release composition layer texture.
Declaration
public bool CompositionLayer_ReleaseTexture(int layerID)
Parameters
Type |
Name |
Description |
int |
layerID |
|
Returns
Compositionlayer_GetExternalSurfaceObj()
Declaration
public IntPtr Compositionlayer_GetExternalSurfaceObj()
Returns
Compositionlayer_GetExternalSurfaceObj2(int)
Declaration
public IntPtr Compositionlayer_GetExternalSurfaceObj2(int layerID)
Parameters
Type |
Name |
Description |
int |
layerID |
|
Returns
CreateReferenceSpace(ref XrReferenceSpaceCreateInfo, out XrSpace)
Declaration
public XrResult CreateReferenceSpace(ref XrReferenceSpaceCreateInfo createInfo, out XrSpace space)
Parameters
Returns
DestroySpace(XrSpace)
Declaration
public XrResult DestroySpace(XrSpace space)
Parameters
Type |
Name |
Description |
XrSpace |
space |
|
Returns
EnumerateReferenceSpaces(uint, out uint, out XrReferenceSpaceType)
Declaration
public XrResult EnumerateReferenceSpaces(uint spaceCapacityInput, out uint spaceCountOutput, out XrReferenceSpaceType spaces)
Parameters
Returns
GetSystemProperties(ref XrSystemProperties)
Declaration
public XrResult GetSystemProperties(ref XrSystemProperties properties)
Parameters
Returns
HookGetInstanceProcAddr(IntPtr)
Declaration
protected override IntPtr HookGetInstanceProcAddr(IntPtr func)
Parameters
Type |
Name |
Description |
IntPtr |
func |
|
Returns
Overrides
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
Submit_CompositionLayerQuad(XrCompositionLayerQuad, LayerType, uint, int)
submit compostion layer of type quad.
Declaration
public void Submit_CompositionLayerQuad(XrCompositionLayerQuad quad, LayerType layerType, uint compositionDepth, int layerID)
Parameters
VIVEOpenXR_CompositionLayer_Destroy(int)
Declaration
public static extern bool VIVEOpenXR_CompositionLayer_Destroy(int layerID)
Parameters
Type |
Name |
Description |
int |
layerID |
|
Returns
VIVEOpenXR_CompositionLayer_GetFuncAddrs(XrInstance, IntPtr)
Declaration
public static extern XrResult VIVEOpenXR_CompositionLayer_GetFuncAddrs(XrInstance xrInstance, IntPtr xrGetInstanceProcAddrFuncPtr)
Parameters
Returns
VIVEOpenXR_CompositionLayer_GetTexture(int, out uint)
Declaration
public static extern IntPtr VIVEOpenXR_CompositionLayer_GetTexture(int layerID, out uint imageIndex)
Parameters
Type |
Name |
Description |
int |
layerID |
|
uint |
imageIndex |
|
Returns
VIVEOpenXR_CompositionLayer_Init(XrSession, uint, uint, GraphicsAPI, bool, bool, out uint, bool)
Declaration
public static extern int VIVEOpenXR_CompositionLayer_Init(XrSession session, uint textureWidth, uint textureHeight, GraphicsAPI graphicsAPI, bool isDynamic, bool isProtected, out uint imageCount, bool isExternal)
Parameters
Returns
VIVEOpenXR_CompositionLayer_ReleaseTexture(int)
Declaration
public static extern bool VIVEOpenXR_CompositionLayer_ReleaseTexture(int layerID)
Parameters
Type |
Name |
Description |
int |
layerID |
|
Returns
VIVEOpenXR_Compositionlayer_GetExternalSurfaceObj()
Declaration
public static extern IntPtr VIVEOpenXR_Compositionlayer_GetExternalSurfaceObj()
Returns
VIVEOpenXR_Compositionlayer_GetExternalSurfaceObj2(int)
Declaration
public static extern IntPtr VIVEOpenXR_Compositionlayer_GetExternalSurfaceObj2(int layerID)
Parameters
Type |
Name |
Description |
int |
layerID |
|
Returns
VIVEOpenXR_Submit_CompositionLayerQuad(XrCompositionLayerQuad, LayerType, uint, int)
Declaration
public static extern void VIVEOpenXR_Submit_CompositionLayerQuad(XrCompositionLayerQuad quad, LayerType layerType, uint compositionDepth, int layerID)
Parameters