/********* ** Protected Methods *********/ /// <inheritdoc/> protected override IntPtr LoadLibrary() { var handle = LibDl.dlopen("libvulkan.so.1", LibDl.RtldNow); // desktop linux if (handle == IntPtr.Zero) { handle = LibDl.dlopen("libvulkan.so", LibDl.RtldNow); // android } return(handle); }
/// <inheritdoc/> protected override void FreeLibrary() => LibDl.dlclose(Handle);
/********* ** Public Methods *********/ /// <inheritdoc/> public override IntPtr GetFunctionPointer(string functionName) => LibDl.dlsym(Handle, functionName);