mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 04:51:18 +00:00
Add volk
This commit is contained in:
parent
021869a3a1
commit
2c4a47541d
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -16,3 +16,6 @@
|
|||||||
[submodule "dependencies/freetype"]
|
[submodule "dependencies/freetype"]
|
||||||
path = dependencies/freetype
|
path = dependencies/freetype
|
||||||
url = https://gitlab.freedesktop.org/freetype/freetype.git
|
url = https://gitlab.freedesktop.org/freetype/freetype.git
|
||||||
|
[submodule "dependencies/volk"]
|
||||||
|
path = dependencies/volk
|
||||||
|
url = https://github.com/zeux/volk
|
||||||
|
@ -113,6 +113,14 @@ set_property(TARGET glad PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|||||||
target_link_libraries(${PROJECT_NAME} PUBLIC glad)
|
target_link_libraries(${PROJECT_NAME} PUBLIC glad)
|
||||||
target_include_directories(${PROJECT_NAME} PUBLIC dependencies/glad/include)
|
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:
|
# SDL2:
|
||||||
find_package(SDL2)
|
find_package(SDL2)
|
||||||
if (SDL2_FOUND)
|
if (SDL2_FOUND)
|
||||||
|
1
dependencies/volk
vendored
Submodule
1
dependencies/volk
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 121a4584f69056d2c6db2eb4104650ce749d4c72
|
@ -8,7 +8,8 @@
|
|||||||
|
|
||||||
#include "log.hpp"
|
#include "log.hpp"
|
||||||
|
|
||||||
#include <vulkan/vulkan.h>
|
#define VOLK_IMPLEMENTATION
|
||||||
|
#include "volk.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
@ -188,8 +189,6 @@ namespace engine::gfx {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user