1
0
mirror of https://github.com/elima/gpu-playground.git synced 2026-08-22 13:53:03 +00:00

vulkan-minimal: Links against a Vulkan loader (libvulkan.so) instead

Previously, the Intel Vulkan driver was used directly.
This commit is contained in:
Eduardo Lima Mitev
2016-11-10 10:35:58 +01:00
parent 821e8f432c
commit be8660abc4
2 changed files with 14 additions and 10 deletions
+3 -7
View File
@@ -2,10 +2,7 @@ TARGET=vulkan-minimal
GLSL_VALIDATOR=../glslangValidator
VULKAN_SO_NAME=vulkan_intel
VULKAN_SO_PATH=~/devel/build/lib
all: Makefile $(TARGET) vert.spv frag.spv
all: $(TARGET) vert.spv frag.spv
vert.spv: shader.vert
$(GLSL_VALIDATOR) -V shader.vert
@@ -13,12 +10,11 @@ vert.spv: shader.vert
frag.spv: shader.frag
$(GLSL_VALIDATOR) -V shader.frag
$(TARGET): main.c vert.spv frag.spv
$(TARGET): Makefile main.c vert.spv frag.spv
gcc -ggdb -O0 -Wall -std=c99 \
-DCURRENT_DIR=\"`pwd`\" \
`pkg-config --libs --cflags xcb` \
-L $(VULKAN_SO_PATH) \
-l$(VULKAN_SO_NAME) \
-lvulkan \
-o $(TARGET) \
main.c