a、windows上的兼容驱动更新可在官网直接下载,运行
b、Linux Ubuntu 16.04 Intel (更新Intel 兼容驱动 )
Vulkan tools and drivers —— https://launchpad.net/~canonical-x/+archive/ubuntu/vulkan/
(1)Adding this PPA to your system
Youcan update your system with unsupported packages from this untrusted PPA byadding .
:: sudo add-apt-repositoryppa:canonical-x/vulkan
:: sudo apt-get update
(2)vulkan loader has dropped it's demos (can't ship prebuilt shaders) and vkcubeis broken, but the driver is now fixed and Willems demos work (some might crashthough)
::sudoapt-add-repository ppa:canonical-x/vulkan
:: sudo apt update
:: sudo apt installvulkan-utils mesa-vulkan-drivers
then run "vulkaninfo"
sdk 下载(Windows /Linux/Android) https://vulkan.lunarg.com/
sdk 安装教程
https://vulkan-tutorial.com/Development_environment#page_Vulkan_SDK
a、windows下安装可参考教程
b、在ubuntu 16.04下安装
打开终端,执行以下命令,随后会自动生成一个VulkanSDK文件,
chmod +x vulkansdk-linux-x86_64-xxx.run
./vulkansdk-linux-x86_64-xxx.run
随后执行 sudo apt installlibxcb1-dev xorg-dev 安装XCB依赖库
run./build_examples.sh 会生成./exmaples/build/cube可执行文件。运行该cube可看到
notice: 如果只下载了sdk ,但是显卡不支持vulkan的话,则会在运行cube示例时fail
glfw下载链接 http://www.glfw.org/ glm 下载链接 https://github.com/g-truc/glm/releases
a、windows 在vs2015上开发可直接参考教程
b、linux的安装
必备工具:gcc的版本需支持c++(4.8 or later) cmake make
(1)glfw的install
进入glfw目录下 ,运行
cmake .
make
然后执行sudo make install 安装GLFW
(2)glm 的 install 可直接执行sudo apt install libglm-dev 安装