Grassland is a universal library designed for common usage in graphics applications. Using Vulkan and Direct3D 12 as its backend. (Working in Progress)
- Clone project
git clone git@github.com:LazyJazz/grassland.git - Enter directory
cd grassland - Pull submodules
git submodule update --init --recursive - Use CMake build the project.
- Download Vulkan SDK installer for Windows from Vulkan SDK Download page,
- Run the installer program (As administrator), and follow the guide.
- Reboot your system.
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.231-jammy.list https://packages.lunarg.com/vulkan/1.3.231/lunarg-vulkan-1.3.231-jammy.list
sudo apt update
sudo apt install vulkan-sdkwget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.231-focal.list https://packages.lunarg.com/vulkan/1.3.231/lunarg-vulkan-1.3.231-focal.list
sudo apt update
sudo apt install vulkan-sdkwget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.224-bionic.list https://packages.lunarg.com/vulkan/1.3.224/lunarg-vulkan-1.3.224-bionic.list
sudo apt update
sudo apt install vulkan-sdk- Download Vulkan SDK package for Linux from Vulkan SDK Download page.
- Extract files from the package and save to a proper path, e.g.
~/vulkan_sdk/. - Add the following contents to the end of
/etc/profile, you may need to do this as super user, e.g.,sudo vim /etc/profile.
export VULKAN_SDK=/your_path_to_vulkan_sdk/x86_64
export PATH=$PATH:$VULKAN_SDK/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VULKAN_SDK/lib
export VK_LAYER_PATH=$VULKAN_SDK/etc/explicit_layer.d
- Reboot your system.
You can try something similar with the process for Ubuntu.
This works with both Intel and Apple Silicon.
- Download Vulkan SDK Installer image for macOS from Vulkan SDK Download page.
- Run the installer, and follow the guide (It may require Rosetta 2 on Apple Silicon devices, however, the generated library will be on native Apple Silicon architecture).
- Reboot your system.