vulkzample/run.sh
Rebekah Rowe a6c67dd91f
Initial Commit
This took alot of love to build.
It is build off of the combo of the Vulkan Tutorial and Sample files
from the vulkanHPP library.

The VulkanHPP Library appears compatible with the GPL license as per it
being the Apache 2 license.
2024-07-13 20:29:05 -04:00

25 lines
497 B
Bash
Executable File

#!/bin/sh -e
SCRIPT_PATH="$(readlink -f "$0")"
SCRIPT_DIR="$(dirname "$SCRIPT_PATH")"
cd "$SCRIPT_DIR"
if [ ! -d "build/" ]; then
echo "Build the project first before attempting to run it."
exit 404
fi
cd build/
CODE_DEBUGGER=''
if [ -n "$ENABLE_DEBUG" ]; then
CODE_DEBUGGER='gdb'
fi
if [ -n "$ENABLE_SWRAST" ]; then
export VK_DRIVER_FILES='/usr/share/vulkan/icd.d/lvp_icd.x86_64.json'
export LIBGL_ALWAYS_SOFTWARE=1
export __GLX_VENDOR_LIBRARY_NAME=mesa
fi
$CODE_DEBUGGER ./vulkzample