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:
parent
f54e78c3f8
commit
2b4ed5dcec
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user