Backend.OpenXR.GetFunctionPtr

static IntPtr GetFunctionPtr(string functionName)

This is basically xrGetInstanceProcAddr from OpenXR, you can use this to get and call functions from an extension you’ve loaded. You can use Marshal.GetDelegateForFunctionPointer to turn the result into a delegate that you can call.

   
string functionName  
RETURNS: IntPtr A function pointer, or null on failure. You can use Marshal.GetDelegateForFunctionPointer to turn this into a delegate that you can call.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!