This commit is contained in:
Bailey Harrison 2022-09-13 22:55:08 +01:00
parent 021869a3a1
commit 2c4a47541d
4 changed files with 14 additions and 3 deletions

3
.gitmodules vendored
View File

@ -16,3 +16,6 @@
[submodule "dependencies/freetype"]
path = dependencies/freetype
url = https://gitlab.freedesktop.org/freetype/freetype.git
[submodule "dependencies/volk"]
path = dependencies/volk
url = https://github.com/zeux/volk

View File

@ -113,6 +113,14 @@ set_property(TARGET glad PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(${PROJECT_NAME} PUBLIC glad)
target_include_directories(${PROJECT_NAME} PUBLIC dependencies/glad/include)
# Volk
set(VOLK_STATIC_DEFINES "")
set(VOLK_PULL_IN_VULKAN ON)
set(VOLK_INSTALL OFF)
set(VOLK_HEADERS_ONLY ON)
add_subdirectory(dependencies/volk)
target_link_libraries(${PROJECT_NAME} PRIVATE volk_headers)
# SDL2:
find_package(SDL2)
if (SDL2_FOUND)

1
dependencies/volk vendored Submodule

@ -0,0 +1 @@
Subproject commit 121a4584f69056d2c6db2eb4104650ce749d4c72

View File

@ -8,7 +8,8 @@
#include "log.hpp"
#include <vulkan/vulkan.h>
#define VOLK_IMPLEMENTATION
#include "volk.h"
#include <assert.h>
@ -188,8 +189,6 @@ namespace engine::gfx {
#endif
}
};