Exemple #1
0
        public static void Load <T>(ref T del, VkDevice device)
        {
            var    command = GetCommand <T>();
            var    native  = Interop.GetUTF8(command);
            IntPtr ptr     = VK.GetDeviceProcAddr(device, native);

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