Commit graph

343 commits

Author SHA1 Message Date
Fabian Sauter
2013bf9c68 Increased the CMake minimum required version to 3.20
Turns out `OUTPUT` for `add_custom_command` requires CMake 3.20. https://cmake.org/cmake/help/latest/command/add_custom_command.html

Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-28 10:35:22 +02:00
Fabian Sauter
7673db6959 Replaced set and list to string with fmt::join
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
4b7e3b13f8 Fixed building Python package
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
00cc533f80 Android and python logging
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
444c8fc1db Spdlog is now optional for logging
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
85396abd54 Linking fmt public since it's included in a header
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
2c68588c71 Fixed checking for disabled logging
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
c1c95f6498 removed spdlog include outside logger
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
4e9cebb308 BUILD_IN -> BUILT_IN
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
bd3ed04be8 Option to either use precompiled shaders or compile them on build
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
d2ca970870 Ignoring header include order
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
cf721cc21a Option to disable logging completely.
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
7bdde2e6f1 Updated the log level documentation
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
6f0916d325 Removed CPR code
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
dab8492376 Downgraded CMake minimum version to 3.14 from 3.15
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
fd036558a3 Fixed logger when running on Windows
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
726fae58f1 Added an option to get the current vk instance
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
917b6f6872 Added an option to get the current vk instance
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00
Fabian Sauter
2ec35acba5 Updated pybind11 bindings
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00
Fabian Sauter
210fa21a3a [[nodiscard]] is cpp17
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00
Fabian Sauter
3f7ca2830e Renamed logger target
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00
Fabian Sauter
f0773d6005 Private linking when ever possible
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00
Fabian Sauter
f01bcb68a5 New logging framework
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00
Fabian Sauter
34f9d58722 Fixed compiling tests with the new test layout
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00
Fabian Sauter
b95df8d0a0 First pass for rewriting the build system
* Refactored all CMake files
* Started working on compiling shaders to header files in CMake

Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00
Fabian Sauter
5dae50c8d9 Vulkan driver version check
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00
Fabian Sauter
bf0d938428 Linking against Vulkan-Headers
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00
Fabian Sauter
50ffbbc01a Replaced .gitmodules with fetch_content
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:04 +02:00
Fabian Sauter
88b06ad521 Fixed compiler warnings
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-05-20 09:43:35 +02:00
Fabian Sauter
e4a9b9d354 Not formatting automatically generated and lib files
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-05-02 16:24:51 +02:00
Fabian Sauter
24cd307042 Added .clang-format file and formatted everything
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-05-02 15:11:40 +02:00
Alejandro Saucedo
f731f2e55c
Merge pull request #285 from COM8/fmt_fix
Enum class fix for fmt 8.x
2022-05-02 13:58:02 +01:00
Alejandro Saucedo
221ad18315
Merge pull request #283 from COM8/master
Removed '#pragma once' from cpp files
2022-05-02 13:44:35 +01:00
Fabian Sauter
f40ba2852b Enum class fix for fmt 8.x
Since fmt 8.0.0 enum classes are not being implicitly converted to int any more.
Refference: https://github.com/fmtlib/fmt/issues/1841

Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-05-02 14:33:03 +02:00
Fabian Sauter
9a791b161d Fixed Vulkan deprecation warning
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-05-02 13:42:25 +02:00
Fabian Sauter
294fa46d0a Removed '#pragma once' from cpp files
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-05-02 13:35:22 +02:00
Alejandro Saucedo
11b04510ea Added active log level definitions for kompute
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-04-13 10:52:42 +01:00
tpoisonooo
304335152a style(src/Algorithm): fix typo
Signed-off-by: tpoisonooo <khj.application@aliyun.com>
2022-03-17 17:54:31 +08:00
Alejandro Saucedo
d2d9ae6873 Android fixed example
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-01-30 13:30:41 +00:00
Alejandro Saucedo
ecf05b2c76
Merge pull request #257 from KomputeProject/fixed_formatting
Updated formatting
2021-11-17 08:24:46 +00:00
Alejandro Saucedo
797ba87c2a Updated formatting
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2021-11-16 23:03:43 +00:00
Alejandro Saucedo
304ed846d2
Merge pull request #254 from ItsBasi/ItsBasi-patch-reference-to-non-existing-single_include
Remove nonexisting "single_include" from INSTALL_INTERFACE
2021-09-29 18:11:29 +01:00
ItsBasi
6b56fddef8 Remove nonexisting "single_include" from INSTALL_INTERFACE
CMake considers it an error that the target kompute::kompute references the "single_include" folder which is actually installed to "include".

CMakeLists.txt👎 error: Imported target "kompute::kompute" includes non-existent path "D:/Downloads/kompute-0.8.0/build/install/single_include" in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include: * The path was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and references files it does not provide.

Signed-off-by: ItsBasi <5033630+ItsBasi@users.noreply.github.com>
2021-09-27 22:19:44 +02:00
ItsBasi
c181654f09 Avoid using pointers to temporary copies of desired extensions.
validExtensions now references data that remains constant for its entire life-time.

Signed-off-by: ItsBasi <5033630+ItsBasi@users.noreply.github.com>
2021-09-16 14:06:32 +02:00
Alejandro Saucedo
3eb97dbd05 Fix for null debug
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2021-09-15 14:17:47 +01:00
Alejandro Saucedo
932620091c Updated docs and renamig kp::Constants
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2021-09-12 16:52:16 +01:00
Alejandro Saucedo
990ccd5f3b Added docstrings for new functions
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2021-09-12 16:52:16 +01:00
Alejandro Saucedo
b9e40d5028 Updated algo to align with memory management
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2021-09-12 16:52:16 +01:00
Alejandro Saucedo
3d320ff687 Updating python
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2021-09-12 16:52:16 +01:00
Alejandro Saucedo
5ed2691301 Updated push const to validate same size params
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2021-09-12 16:52:15 +01:00