Exemplo n.º 1
0
        public static IntPtr GetProcAddr(this VkDevice device, string name)
        {
            int byteCount = Interop.GetMaxByteCount(name);
            var dstPtr    = stackalloc byte[byteCount];

            Interop.StringToPointer(name, dstPtr, byteCount);
            var addr = Vulkan.vkGetDeviceProcAddr(device, dstPtr);

            return(addr);
        }