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