mirror of
https://github.com/elima/gpu-playground.git
synced 2025-06-06 15:36:35 +00:00
vulkan-triangle: Links against a Vulkan loader (libvulkan.so) instead
This commit is contained in:
parent
d0ef28783b
commit
c8607b8797
@ -2,10 +2,7 @@ TARGET=vulkan-triangle
|
|||||||
|
|
||||||
GLSL_VALIDATOR=../glslangValidator
|
GLSL_VALIDATOR=../glslangValidator
|
||||||
|
|
||||||
VULKAN_SO_NAME=vulkan_intel
|
all: $(TARGET) vert.spv frag.spv
|
||||||
VULKAN_SO_PATH=~/devel/build/lib
|
|
||||||
|
|
||||||
all: Makefile $(TARGET) vert.spv frag.spv
|
|
||||||
|
|
||||||
vert.spv: shader.vert
|
vert.spv: shader.vert
|
||||||
$(GLSL_VALIDATOR) -V shader.vert
|
$(GLSL_VALIDATOR) -V shader.vert
|
||||||
@ -13,14 +10,13 @@ vert.spv: shader.vert
|
|||||||
frag.spv: shader.frag
|
frag.spv: shader.frag
|
||||||
$(GLSL_VALIDATOR) -V shader.frag
|
$(GLSL_VALIDATOR) -V shader.frag
|
||||||
|
|
||||||
$(TARGET): main.c vert.spv frag.spv \
|
$(TARGET): Makefile main.c vert.spv frag.spv \
|
||||||
common/wsi.h common/wsi-xcb.c \
|
common/wsi.h common/wsi-xcb.c \
|
||||||
common/vk-api.h common/vk-api.c
|
common/vk-api.h common/vk-api.c
|
||||||
gcc -ggdb -O0 -Wall -std=c99 \
|
gcc -ggdb -O0 -Wall -std=c99 \
|
||||||
-DCURRENT_DIR=\"`pwd`\" \
|
-DCURRENT_DIR=\"`pwd`\" \
|
||||||
`pkg-config --libs --cflags xcb` \
|
`pkg-config --libs --cflags xcb` \
|
||||||
-L $(VULKAN_SO_PATH) \
|
-lvulkan \
|
||||||
-l$(VULKAN_SO_NAME) \
|
|
||||||
-DVK_USE_PLATFORM_XCB_KHR \
|
-DVK_USE_PLATFORM_XCB_KHR \
|
||||||
-o $(TARGET) \
|
-o $(TARGET) \
|
||||||
common/wsi-xcb.c \
|
common/wsi-xcb.c \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user