1
0
mirror of https://github.com/elima/gpu-playground.git synced 2025-06-06 15:36:35 +00:00

vulkan-triangle: Specify the Vulkan platform in the Makefile instead

This commit is contained in:
Eduardo Lima Mitev 2016-09-28 19:15:15 +02:00
parent f54e78c3f8
commit 2b4ed5dcec
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ $(TARGET): main.c vert.spv frag.spv \
`pkg-config --libs --cflags xcb` \
-L $(VULKAN_SO_PATH) \
-l$(VULKAN_SO_NAME) \
-DVK_USE_PLATFORM_XCB_KHR \
-o $(TARGET) \
common/vk-api.c \
main.c

View File

@ -31,7 +31,7 @@
#include <unistd.h>
#include <xcb/xcb.h>
#define VK_USE_PLATFORM_XCB_KHR
/* 'VK_USE_PLATFORM_X_KHR' currently defined as flag in Makefile */
#include <vulkan/vulkan.h>
#include "common/vk-api.h"