Ejemplo n.º 1
0
        public static void Load <T>(ref T del, VkInstance instance)
        {
            var    command = GetCommand <T>();
            var    native  = Interop.GetUTF8(command);
            IntPtr ptr     = VK.GetInstanceProcAddr(instance, native);

            del = Marshal.GetDelegateForFunctionPointer <T>(ptr);
        }