Esempio n. 1
0
        /*********
        ** 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);
        }
Esempio n. 2
0
 /// <inheritdoc/>
 protected override void FreeLibrary() => LibDl.dlclose(Handle);
Esempio n. 3
0
 /*********
 ** Public Methods
 *********/
 /// <inheritdoc/>
 public override IntPtr GetFunctionPointer(string functionName) => LibDl.dlsym(Handle, functionName);