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