version 2.5.1
This commit is contained in:
@@ -7,8 +7,17 @@ namespace VIVE.OpenXR.Feature
|
||||
{
|
||||
public interface IViveFeatureWrapper
|
||||
{
|
||||
/// <summary>
|
||||
/// OnInstanceCreate might be called multiple times. Because many features might be using the same instance.
|
||||
/// </summary>
|
||||
/// <param name="xrInstance"></param>
|
||||
/// <param name="xrGetInstanceProcAddr"></param>
|
||||
/// <returns></returns>
|
||||
public bool OnInstanceCreate(XrInstance xrInstance, IntPtr xrGetInstanceProcAddr);
|
||||
|
||||
/// <summary>
|
||||
/// OnInstanceDestroy might be called multiple times. Because many features might be using the same instance.
|
||||
/// </summary>
|
||||
public void OnInstanceDestroy();
|
||||
}
|
||||
|
||||
@@ -21,6 +30,11 @@ namespace VIVE.OpenXR.Feature
|
||||
// Set true in yourfeature's OnInstanceCreate
|
||||
public bool IsInited { get; protected set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// If the feature is inited not successfully, Set this true. Use to avoid multiple inits.
|
||||
/// </summary>
|
||||
public bool TryInited { get; protected set; } = false;
|
||||
|
||||
public OpenXRHelper.xrGetInstanceProcAddrDelegate xrGetInstanceProcAddr;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user