Method SetFunctionCallback
SetFunctionCallback(string, BeforeFunctionDelegate, AfterFunctionDelegate)
Set the callbacks to call before and after the given OpenXR function is called within the Mock Runtime
Note that since some OpenXR functions are called from within the graphics thread that care should be taken to maintain thread safety from within the callbacks.
Note that function callbacks can be set prior to the MockRuntime being initialized but will be reset when the mock runtime is shutdown.
Declaration
public static void SetFunctionCallback(string function, MockRuntime.BeforeFunctionDelegate beforeCallback, MockRuntime.AfterFunctionDelegate afterCallback)
Parameters
Type | Name | Description |
---|---|---|
string | function | OpenXR function name |
MockRuntime.BeforeFunctionDelegate | beforeCallback | Callback to call before the OpenXR function is called (null to clear) |
MockRuntime.AfterFunctionDelegate | afterCallback | Callback to call after the OpenXR function is called (null to clear) |
SetFunctionCallback(string, BeforeFunctionDelegate)
Set a callback to call before the given OpenXR function is called within the Mock Runtime
Note that since some OpenXR functions are called from within the graphics thread that care should be taken to maintain thread safety from within the callbacks.
Note that function callbacks can be set prior to the MockRuntime being initialized but will be reset when the mock runtime is shutdown.
Declaration
public static void SetFunctionCallback(string function, MockRuntime.BeforeFunctionDelegate beforeCallback)
Parameters
Type | Name | Description |
---|---|---|
string | function | OpenXR function name |
MockRuntime.BeforeFunctionDelegate | beforeCallback | Callback to call before the OpenXR function is called (null to clear) |
SetFunctionCallback(string, AfterFunctionDelegate)
Set a callback to call before the given OpenXR function is called within the Mock Runtime
Declaration
public static void SetFunctionCallback(string function, MockRuntime.AfterFunctionDelegate afterCallback)
Parameters
Type | Name | Description |
---|---|---|
string | function | OpenXR function name |
MockRuntime.AfterFunctionDelegate | afterCallback | Callback to call after the OpenXR function is called (null to clear) |